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)?
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);