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

one.
This commit is contained in:
Christian Costa 2003-10-16 19:08:33 +00:00 committed by Alexandre Julliard
parent 3657b6d569
commit 4bf5d02c23
1 changed files with 3 additions and 3 deletions

View File

@ -4010,8 +4010,8 @@ static void fill_caps(void)
TRACE(": Z bits = %d\n", depth_bits); TRACE(": Z bits = %d\n", depth_bits);
switch (depth_bits) { switch (depth_bits) {
case 16: opengl_device_caps.dwDeviceZBufferBitDepth = DDBD_16; break; case 16: opengl_device_caps.dwDeviceZBufferBitDepth = DDBD_16; break;
case 24: opengl_device_caps.dwDeviceZBufferBitDepth = DDBD_24; break; case 24: opengl_device_caps.dwDeviceZBufferBitDepth = DDBD_16|DDBD_24; break;
case 32: opengl_device_caps.dwDeviceZBufferBitDepth = DDBD_32; break; case 32:
default: opengl_device_caps.dwDeviceZBufferBitDepth = DDBD_16|DDBD_24|DDBD_32; break; default: opengl_device_caps.dwDeviceZBufferBitDepth = DDBD_16|DDBD_24|DDBD_32; break;
} }
} }