Unable to choose visual

I am using open GL on RedHat 7.3. When I
am using the call glXChooseVisual. It is
returning NULL, so I could not proceed
further.

My video card is having 8 MB RAM and depth
is 24 bit and resolution is 1280x1024 pixels.

What could be the reason. Do I have to
change the graphics card or something else
Please advice me on this regard

Thanks in advance

B. Prabakaran
Bangalore

What attributes are you using and what is the name of your video card? (ie. what chip can be found on top of it)

I am using GLX_RGBA (attributes) and the graphics card is from ATI Technologies.

Do you need any more information

B. Prabakaran

Are you only using GLX_RGBA as attribute?

If so, try using the following instead of only GLX_RGBA:

attribList = {
GLX_RGBA,
GLX_DOUBLEBUFFER,
GLX_RED_SIZE, 4,
GLX_GREEN_SIZE, 4,
GLX_BLUE_SIZE, 4,
None
}

If you still don’t get a valid visual in return you can try removing the GLX_DOUBLEBUFFER attribute.
(which will give you a single buffer)

What does glxinfo say?

Try “GLX_ALPHA_SIZE, 0” as an attribute. Sometimes, this seems to help.

This topic was automatically closed 183 days after the last reply. New replies are no longer allowed.