LWJGL Forum

Programming => OpenGL => Topic started by: fazekaim on August 15, 2009, 10:43:02

Title: Insufficient depth buffer precision problem
Post by: fazekaim on August 15, 2009, 10:43:02
Hello,

i tried my game on my fiend's computer containing an old Ati Radeon 1600 videocard dropping this exception:
org.lwjgl.LWJGLException: Insufficient depth buffer precision

However the displaymodes array contains this: 1024x768x32. but i cannot use it in wondow mode. it throws this exception.

Could it be, that a listed display mode cannot be used? Caused by driver problem?

Thanks in advance!
Title: Re: Insufficient depth buffer precision problem
Post by: Fool Running on August 17, 2009, 13:13:46
The depth buffer is a separate value for the resolution and color depth (the 1024x768x32). The depth buffer value is passed in to Display.create() as one of the parameters to the PixelFormat constructor.
Also, I think some cards running in 16 bit color mode (if thats what the desktop color is at) can only do a 16 bit depth buffer. You might call Display.getDesktopDisplayMode() before you do Display.create() and see if its in 16 bit color mode.
Title: Re: Insufficient depth buffer precision problem
Post by: fazekaim on August 17, 2009, 13:19:40
Thank you!