Commit 99283401 authored by Stefan Dösinger's avatar Stefan Dösinger Committed by Alexandre Julliard

wined3d: Report only D16, D24S8 and D24X8 depth stencil formats as supported.

parent 6eb7eadf
......@@ -1631,18 +1631,22 @@ static HRESULT WINAPI IWineD3DImpl_CheckDeviceFormat(IWineD3D *iface, UINT Adapt
if(Usage & WINED3DUSAGE_DEPTHSTENCIL) {
switch (CheckFormat) {
case WINED3DFMT_D16_LOCKABLE:
case WINED3DFMT_D32:
case WINED3DFMT_D15S1:
/* In theory we could do all formats, just fetch them accordingly should the buffer be locked.
* Windows supports only those 3, and enumerating the other formats confuses applications
*/
case WINED3DFMT_D24S8:
case WINED3DFMT_D24X8:
case WINED3DFMT_D24X4S4:
case WINED3DFMT_D16:
case WINED3DFMT_L16:
case WINED3DFMT_D32F_LOCKABLE:
case WINED3DFMT_D24FS8:
TRACE_(d3d_caps)("[OK]\n");
return WINED3D_OK;
case WINED3DFMT_D16_LOCKABLE:
case WINED3DFMT_D24FS8:
case WINED3DFMT_D32F_LOCKABLE:
case WINED3DFMT_D24X4S4:
case WINED3DFMT_D15S1:
case WINED3DFMT_D32:
TRACE_(d3d_caps)("[FAILED]. Disabled because not enumerated on windows\n");
return WINED3DERR_NOTAVAILABLE;
default:
TRACE_(d3d_caps)("[FAILED]\n");
return WINED3DERR_NOTAVAILABLE;
......
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