iDevGames Forums
PVRTexture loader give error 0x0500 - Printable Version

+- iDevGames Forums (http://www.idevgames.com/forums)
+-- Forum: Development Zone (/forum-3.html)
+--- Forum: Game Programming Fundamentals (/forum-7.html)
+--- Thread: PVRTexture loader give error 0x0500 (/thread-8751.html)



PVRTexture loader give error 0x0500 - sefiroths - Mar 24, 2011 09:58 AM

hi, i have an application with normal texture png.
works well. now i have to view some pvr texture.
i have downloaded PVRTexture from apple.
i have putted in init function
Code:
pvrT=[PVRTexture pvrTextureWithContentsOfFile...]
but soon gives me that error.
the line before that error is inside PVRTexture.m method createGlTexture with this code:
Code:
glCompressedTexImage2D(...)
err=glGetError();
i have readed that a possibly error is on blend func, but mine is equal to pvrtexture example:
glBlendFunc(GL_SRC_ALPHA,GL_ONE_MINUS_SRC_ALPHA);
some ideas?
thanks


RE: PVRTexture loader give error 0x0500 - OneSadCookie - Mar 24, 2011 10:14 AM

Code:
#define GL_INVALID_ENUM 0x0500

So somewhere, you've passed a wrong GL_ constant to a gl function.


RE: PVRTexture loader give error 0x0500 - sefiroths - Mar 25, 2011 03:52 AM

there is a constanti that works for normal texture png and doesn't work for pvr?
i have added PVRTexture.h and .m from apple and copyed
pvrT=[PVRTexture pvrTextureWithContentsOfFile...]
without modification of code...