PVRTexture loader give error 0x0500

Member
Posts: 164
Joined: 2010.10
Post: #1
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
Quote this message in a reply
Luminary
Posts: 5,143
Joined: 2002.04
Post: #2
Code:
#define GL_INVALID_ENUM 0x0500

So somewhere, you've passed a wrong GL_ constant to a gl function.
Quote this message in a reply
Member
Posts: 164
Joined: 2010.10
Post: #3
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...
Quote this message in a reply
Post Reply 

Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  give direction to sprite termitis 9 9,673 Mar 11, 2011 02:38 PM
Last Post: compiler