GLKTextureLoader fails when loading a certain texture the first time, but succeeds the second time

前端 未结 8 2710
清酒与你
清酒与你 2021-02-20 12:57

I\'m making an iPhone application with OpenGL ES 2.0 using the GLKit. I\'m using GLKTextureLoader to load textures synchronously.

The problem is that for a certain textu

8条回答
  •  情深已故
    2021-02-20 13:45

    I got this when enabling textures before loading the texture. Simply moved glEnable(GL_TEXTURE) after the loading and the issue was gone.

提交回复
热议问题