glCompressedTexSubImage2D(ios, PVR, Opengles2.0) ?

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

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

    diamondcm
    Member

    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?

    #35104

    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.

    Regards,

    Tobias

    #35105

    diamondcm
    Member

    Thank you so much!

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