Add support for all Z buffer depths that are lower that the current
one.
This commit is contained in:
parent
3657b6d569
commit
4bf5d02c23
|
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue