i am using JUCEs OpenGLTexture to load from images. With jpgs it is working perfectly but when i try to use the same process with pngs i am getting GL_INVALID_VALUE. My steps are:
1) using Introjucer to load the image into a component
2) ImageCache::getFromMemory(... , ...) to create the Image
1) Are you on the latest tip? If you're not, you update and try again.
2) Have you tried a different source image? Your image might be corrupted.
3) If you've tried both of the above, please provided a minimal example we can use to reproduce the issue (perhaps by posting the complete code on GitHub). The keyword here is minimal; if you dump hundreds of lines of user code we're not going to have time to read it :)
It seemed to have something to do with the size of the image. I wanted to load a texture to use it as a filmstrip and its size was 18800 x 412. After reducing it to 1880 x 41 it worked.
Didn't you debug your code to see exactly what it was that failed??
Maybe it had nothing to do with openGL, maybe the png didn't even load? Could be that the png loader classes can't handle that size, or have a sanity-check limit in there somewhere.