Fixed texture code for 1.5