Fix texture workaround for bug now fixed in 1.7.2