mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-03-06 20:58:37 +01:00
[d3d9] Disable culling when the app passes an invalid value
This commit is contained in:
parent
991a11617a
commit
4e34c29c56
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue