mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-09-03 20:30:24 +00:00
GPU D3D12: Fix depth format sample count support check
This commit is contained in:
@@ -8372,6 +8372,13 @@ static bool D3D12_SupportsSampleCount(
|
||||
featureData.Flags = (D3D12_MULTISAMPLE_QUALITY_LEVEL_FLAGS)0;
|
||||
#endif
|
||||
featureData.Format = SDLToD3D12_TextureFormat[format];
|
||||
|
||||
if (IsDepthFormat(format)) {
|
||||
featureData.Format = SDLToD3D12_DepthFormat[format];
|
||||
} else {
|
||||
featureData.Format = SDLToD3D12_TextureFormat[format];
|
||||
}
|
||||
|
||||
featureData.SampleCount = SDLToD3D12_SampleCount[sampleCount];
|
||||
res = ID3D12Device_CheckFeatureSupport(
|
||||
renderer->device,
|
||||
|
||||
Reference in New Issue
Block a user