Found this article which might interest you. According to it, 32bit z-buffer support isn’t enabled in GL drivers. This was however, 4 YEARS ago. Maybe Matrox has fixed it and there is some another problem, or maybe not. Matrox isn’t really famous for their awesome GL support. Maybe you can whip up a simple Direct3D app and see if it works under DX(they claim it does). And I’m assuming you’re using the latest drivers.
Thanks very much…i have tried all pixelformat and i have found that all pixelformat with doublebuffer in windowed mode doesn’t work with my engine…
disabling doublebuffer it works fine!!!
WHY?!?!?
WHY if the DescribePixelFormat tells me there a a valid pfmt with depth buffer after in opengl it doesn’t work!!!
you have 2 choices
either try to send different configs in pfd and try choosepixelformat until you get a good result ( in windows you often have the limitation that if the desktop is 16bit the opengl must be 16bit, and the zbuffer cannot exceed the color in bits. )
or number 2, loop through all pixelformats and run describepixelformats on them and make your own search between the formats.