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

前端 未结 8 2705
清酒与你
清酒与你 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:39

    I've also found that you get this error when trying to create a 2D texture with an image larger than the maximum texture size. For the max size you can see Apple's Open GL ES Platform Notes, although those do not appear correct for newer devices so the best bet is to get the value directly.

提交回复
热议问题