Skip to content

Commit 5aea08e

Browse files
CorrectDXGIFormat: fixed handling of D32S8 format
1 parent 5530bc1 commit 5aea08e

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Graphics/GraphicsEngineD3DBase/src/DXGITypeConversions.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -246,6 +246,12 @@ DXGI_FORMAT CorrectDXGIFormat(DXGI_FORMAT DXGIFormat, Uint32 BindFlags)
246246
DXGIFormat = DXGI_FORMAT_D16_UNORM;
247247
break;
248248

249+
case DXGI_FORMAT_R32G8X24_TYPELESS:
250+
case DXGI_FORMAT_R32_FLOAT_X8X24_TYPELESS:
251+
case DXGI_FORMAT_X32_TYPELESS_G8X24_UINT:
252+
DXGIFormat = DXGI_FORMAT_D32_FLOAT_S8X24_UINT;
253+
break;
254+
249255
default:
250256
break;
251257
}

0 commit comments

Comments
 (0)