Part of the Khronos Group

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 2 of 2

Thread: No 32 bit's Z-Buffer in linux

  1. #1
    Junior Member Newbie
    Join Date
    Sep 2004

    No 32 bit's Z-Buffer in linux

    I have a Geforce2 mx 400 with 64 mb ram.

    If I try to use a 32 bit Z-Buffer under linux
    it doesn't work, however under windows a 32 bit
    Z-Buffer is no problem. My drivers are up to date
    in windows and in linux, so why doesn't it work ?

    PS the error I get : Couldn't find matching GLX visual

  2. #2

    Re: No 32 bit's Z-Buffer in linux

    I think NVidia cards gives you a depth buffer size depending on the color depth. A screen in 16 bit color depth gives you a 16 bit depth buffer. If 24 bit colors is used will you get an 24 bit Z-buffer combined with a 8 bit stencil buffer. This is the same under both Windows and linux. You can see the available visuals with the glxinfo command.

    The man page for glXChooseVisual says:
    " glXChooseVisual returns a pointer to an XVisualInfo structure describing the visual that best meets a minimum specification. The boolean GLX attributes of the visual that is returned will match the specified values, and the integer GLX attributes will meet or exceed the specified minimum values."
    This means that if you specify a Z-buffer size between 1-24 will you get the 24+8 combination. If you ask for a 32 bit depth buffer will the function fail and return NULL.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts