ExampleEngine
ExampleEngine copied to clipboard
texturingEnabled
Issue is resolved by commenting replacing EEShape.m section as follows. Otherwise you'll get a compiler error for iOS 5.1
I've commented out the offending lines.
if (texture != nil) { //effect.texturingEnabled = YES; effect.texture2d0.enabled = YES; effect.texture2d0.envMode = GLKTextureEnvModeReplace; effect.texture2d0.target = GLKTextureTarget2D; // effect.texture2d0.glName = texture.glName; effect.texture2d0.name=texture.name; }