Commit 4bf5d02c authored by Christian Costa's avatar Christian Costa Committed by Alexandre Julliard

Add support for all Z buffer depths that are lower that the current

one.
parent 3657b6d5
......@@ -4010,9 +4010,9 @@ static void fill_caps(void)
TRACE(": Z bits = %d\n", depth_bits);
switch (depth_bits) {
case 16: opengl_device_caps.dwDeviceZBufferBitDepth = DDBD_16; break;
case 24: opengl_device_caps.dwDeviceZBufferBitDepth = DDBD_24; break;
case 32: opengl_device_caps.dwDeviceZBufferBitDepth = DDBD_32; break;
default: opengl_device_caps.dwDeviceZBufferBitDepth = DDBD_16|DDBD_24|DDBD_32; break;
case 24: opengl_device_caps.dwDeviceZBufferBitDepth = DDBD_16|DDBD_24; break;
case 32:
default: opengl_device_caps.dwDeviceZBufferBitDepth = DDBD_16|DDBD_24|DDBD_32; break;
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment