There seems to be an issue with ATI+ARB_depth_texture+EXT_texture rectangle.
I always get an error when doing the following:
glTexParameteri(GL_TEXTURE_RECTANGLE_EXT, GL_TEXTURE_MIN_FILTER, GL_NEAREST);
glTexParameteri(GL_TEXTURE_RECTANGLE_EXT, GL_TEXTURE_MAG_FILTER, GL_NEAREST);
glTexParameteri(GL_TEXTURE_RECTANGLE_EXT, GL_TEXTURE_WRAP_S, GL_CLAMP_TO_EDGE);
glTexParameteri(GL_TEXTURE_RECTANGLE_EXT, GL_TEXTURE_WRAP_T, GL_CLAMP_TO_EDGE);
glCopyTexImage2D(GL_TEXTURE_RECTANGLE_EXT, 0, GL_DEPTH_COMPONENT24, 0, 0, canvassize, canvassize, 0);
The last line triggers a 1282 error (INVALID_OPERATION) which indicates that the copying was done inside a glBegin/glEnd pair. This is done during initialization, so this is not the issue. OGL context has a 24 bit zbuffer.
Are there some issues with ATI which I have overlooked?
I must add that I am using a Radeon 9600 on windows XP.
[This message has been edited by Oystein (edited 12-17-2003).]