File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed
Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -2877,7 +2877,15 @@ static D3D12_CPU_DESCRIPTOR_HANDLE *D3D12_GetSamplerState(D3D12_RenderData *data
28772877 samplerDesc .AddressW = D3D12_TEXTURE_ADDRESS_MODE_CLAMP ;
28782878 samplerDesc .MipLODBias = 0.0f ;
28792879 samplerDesc .MaxAnisotropy = 1 ;
2880+ #if defined(SDL_PLATFORM_XBOXONE ) || defined(SDL_PLATFORM_XBOXSERIES )
2881+ // FIXME: Xbox doesn't support FUNC_NONE as of the October 2025 GDK, but
2882+ // at the same time it fixes validation issues on Windows. It's probably
2883+ // the more appropriate value, so get rid of this when GDK catches up.
2884+ // -flibit
2885+ samplerDesc .ComparisonFunc = D3D12_COMPARISON_FUNC_ALWAYS ;
2886+ #else
28802887 samplerDesc .ComparisonFunc = D3D12_COMPARISON_FUNC_NONE ;
2888+ #endif
28812889 samplerDesc .MinLOD = 0.0f ;
28822890 samplerDesc .MaxLOD = D3D12_FLOAT32_MAX ;
28832891 switch (scale_mode ) {
You can’t perform that action at this time.
0 commit comments