glCompressedTexSubImage2D(ios, PVR, Opengles2.0) ?

This topic contains 2 replies, has 2 voices, and was last updated by  diamondcm 6 years, 4 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
  • #30630


    Hi all,

    I met the GLError GL_INVALID_OPERATION when calling glCompressedTexSubImage2D to upload a 64*64 pvr image as a sub texture part in order to replace the original place of a previous 1024*1024 pvr texture.

    Just wondering is that function supported by pvr format in ios? or I didn’t call it correctly?


    Hi diamondcm,

    Unfortunately glCompressedTexSubImage2D has very limited capability in OGLES1/2, as there is only one compressed texture format on these APIs which accepts sub data currently on a limited set of platforms, not including iOS.

    This unfortunately means you’ll either have to use uncompressed formats, see if you can get away with simply using multiple textures, or create your effect in an alternative way.





    Thank you so much!

Viewing 3 posts - 1 through 3 (of 3 total)
You must be logged in to reply to this topic.