PDA

View Full Version : single buffer visual.



kobebryant
01-16-2006, 02:51 PM
My IBM Power4 machine-AIX failed to find single buffer
even though it found double buffer visual.
Why?

I am using glXChooseVisual() with attribute
attrib={GLX_RGBA,GLX_REDSIZE,1,GLX_GREEN_SIZE,1,
GLX_BLUE_SIZE,1,None}.

If I add GLX_DOUBLEBUFFER to the list, my code worked fine. Any thing wrong, is it possible?

Thanks.

-Kobe

dorbie
01-16-2006, 03:40 PM
Your system may not support single buffer rendering with those attributes.

It's not a great loss.

Kobe Bryant
01-16-2006, 05:29 PM
I am developing a code suing mixed mode of the buffers for several platfoms (unix, linux & windows). Is it a safe bet assuming all platforms
have double buffer?

-Thanks.

dorbie
01-17-2006, 10:10 AM
Yes, you can be pretty sure you have a double buffered visual available with OpenGL.