PVRTexture loader give error 0x0500
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
but soon gives me that error.
the line before that error is inside PVRTexture.m method createGlTexture with this code:
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
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...]the line before that error is inside PVRTexture.m method createGlTexture with this code:
Code:
glCompressedTexImage2D(...)
err=glGetError();glBlendFunc(GL_SRC_ALPHA,GL_ONE_MINUS_SRC_ALPHA);
some ideas?
thanks
Code:
#define GL_INVALID_ENUM 0x0500So somewhere, you've passed a wrong GL_ constant to a gl function.
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...
i have added PVRTexture.h and .m from apple and copyed
pvrT=[PVRTexture pvrTextureWithContentsOfFile...]
without modification of code...
Possibly Related Threads...
| Thread: | Author | Replies: | Views: | Last Post | |
| give direction to sprite | termitis | 9 | 8,748 |
Mar 11, 2011 02:38 PM Last Post: compiler |
|

