[d3d9] Disable culling when the app passes an invalid value

This commit is contained in:
Robin Kertels 2022-03-25 17:08:26 +01:00 committed by Philip Rebohle
parent 991a11617a
commit 4e34c29c56
1 changed files with 2 additions and 2 deletions

View File

@ -270,10 +270,10 @@ namespace dxvk {
VkCullModeFlags DecodeCullMode(D3DCULL Mode) {
switch (Mode) {
case D3DCULL_NONE: return VK_CULL_MODE_NONE;
case D3DCULL_CW: return VK_CULL_MODE_FRONT_BIT;
default:
case D3DCULL_CCW: return VK_CULL_MODE_BACK_BIT;
default:
case D3DCULL_NONE: return VK_CULL_MODE_NONE;
}
}