Jan
07-06-2005, 01:38 PM
Hi there
This line
glTexImage2D (GL_TEXTURE_RECTANGLE_EXT, 0, GL_DEPTH_COMPONENT24_ARB, iSizeX, iSizeY, 0, GL_BGRA, GL_UNSIGNED_INT_8_8_8_8_REV, NULL);
gives me an "invalid operation" error. Although the texture i get seems to work just fine.
However, in the docs it's said, that "invalid operation" happens, if it is done between glBegin / glEnd, which is definitely not the case here.
Therefore i really don't know, why i get this error.
It seems to depend on the GL_DEPTH_COMPONENT stuff. If i call the same routine with GL_RGBA8 i get no errors.
This is on an ATI Radeon 9700 with Catalyst 5.6.
Any ideas?
Jan.
This line
glTexImage2D (GL_TEXTURE_RECTANGLE_EXT, 0, GL_DEPTH_COMPONENT24_ARB, iSizeX, iSizeY, 0, GL_BGRA, GL_UNSIGNED_INT_8_8_8_8_REV, NULL);
gives me an "invalid operation" error. Although the texture i get seems to work just fine.
However, in the docs it's said, that "invalid operation" happens, if it is done between glBegin / glEnd, which is definitely not the case here.
Therefore i really don't know, why i get this error.
It seems to depend on the GL_DEPTH_COMPONENT stuff. If i call the same routine with GL_RGBA8 i get no errors.
This is on an ATI Radeon 9700 with Catalyst 5.6.
Any ideas?
Jan.