Syrinx
04-03-03, 06:13 PM
I am trying to write some code that uses an indirect OpenGL context. When I run, 9 times out of 10, I get an "uninitialized" window. That is, the program seems to run fine, but the window appears as if it were never painted. About 1 time in 10, it works fine,generally the first time after the X server has started. I have not been able to determine why this is.
To winnow down the problem, I have simplified the code that reproduces the error. I am using the simple example code described in glXIntro (man glXIntro or look in the OpenGL Reference Manual) that just makes a window and glClears it yellow. If I change the glXCreateContext call to pass GL_FALSE as the last parameter, it reproduces the bug.
I am running a patched version of RedHat 7.3, Free86 4.2.0-8, nVidia's 4349 driver, and nVidia's glx headers. Just yesterday, I tried installing a series of nVidia drivers (2802, 2880, 2960, 3123, 4191, and 4349) to see if one of them worked. They all exhibited the error.
Any ideas what's going wrong? This is a real showstopper for me.
I can attach any code or logs here if needed.
To winnow down the problem, I have simplified the code that reproduces the error. I am using the simple example code described in glXIntro (man glXIntro or look in the OpenGL Reference Manual) that just makes a window and glClears it yellow. If I change the glXCreateContext call to pass GL_FALSE as the last parameter, it reproduces the bug.
I am running a patched version of RedHat 7.3, Free86 4.2.0-8, nVidia's 4349 driver, and nVidia's glx headers. Just yesterday, I tried installing a series of nVidia drivers (2802, 2880, 2960, 3123, 4191, and 4349) to see if one of them worked. They all exhibited the error.
Any ideas what's going wrong? This is a real showstopper for me.
I can attach any code or logs here if needed.