Hi all,
when I’m trying to render into a (float) pbuffer (tried nvidia 61.11 and 61.06 driver under linux on an FX5950 ultra) I get some problems. I’m able to successfully create a pbuffer and glGetIntegerv says to me that it has
depth bits = 24
red bits = 32
alpha bits = 32
stencil bits = 8
double buffer = 0
Now comes the problem: When I try to render something I get an OpenGL 1282 error after executing the following lines of code
glColor3d(0,1,0);
glBegin(GL_LINES);
glVertex2d(0,0);
glVertex2d(1,1);
glVertex2d(0,1);
glVertex2d(1,0);
glEnd();
Everything works well with the same code if I set up a pbuffer with RGBA 8 bit FBConfig.
(On a Geforce 6800 everything works well with the same code).
Any Ideas what could be wrong?
For glXChooseFBConfig I use the following attribs:
int attrib[] = {
GLX_RENDER_TYPE, GLX_RGBA_BIT,
GLX_DRAWABLE_TYPE, GLX_PBUFFER_BIT,
GLX_DOUBLEBUFFER, 0,
GLX_FLOAT_COMPONENTS_NV, true,
GLX_RED_SIZE, 32,
GLX_GREEN_SIZE, 32,
GLX_BLUE_SIZE, 32,
GLX_ALPHA_SIZE, 32,
GLX_STENCIL_SIZE, 0,
GLX_DEPTH_SIZE, 0,
0 };