PDA

View Full Version : black window and time delay: Sync X and GL?



B OBAMA
05-05-2008, 03:37 PM
I have an application that has several windows.
But one window out of ten, has black window not drawing anything.
This does not happen always but only that window not to other windows. I am using glX on Macosx. But I've seen this, on Solaris and even on Windows. Of course, with the same source code.

So, I put some time delay between XCreateWindow() and GL-drawings. Though it does not remove the symptom of balck window, it make it less frequent.
But I do not know why.

It has something to do with the Async between X and GL, I guess.
I tried XSync() or glXWaitX() with no effects on the symptom.

-BO

dorbie
05-06-2008, 11:15 PM
Check your return values.