How to load RGB888 Buffer as a Texture Source?

This topic contains 1 reply, has 1 voice, and was last updated by  Balaji_mcr 4 years, 2 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #31424

    Balaji_mcr
    Member

    Hi all!
    I’m working on OGLES2.0 PowerVR SDK to build application for OMAP35x developement board. I’m trying to load an RGB888 buffer as a Texture to a QUAD. I’ve tried to use fread() to read the contents of the image file but it gets failed at InitBlitInfo(): Error mapping Compositor surface into SGX memory space.
    Can any pls tell me how to load Textures(other than .pvr files)?

    Thank You
    Regards,
    Balaji_mcr

    #37836

    Balaji_mcr
    Member

    Sorry to post this simple question in this forum. i’ve solved this by correcting the internal format parameter in glTexImage2D() parameters & i got the desired output.
    glTexImage2D(GL_TEXTURE_2D, 0, GL_RGB, TEX_SIZE, TEX_SIZE, 0, GL_RGB, GL_UNSIGNED_BYTE, pTexData);

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