1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2024-12-05 01:24:14 +01:00

[d3d11] Fix UNKNOWN enum in video view dimension switch cases

This commit is contained in:
Joshua Ashton 2022-09-10 21:22:48 +00:00 committed by Joshie
parent f9bd1a5d79
commit a3727ebd42

View File

@ -174,7 +174,7 @@ namespace dxvk {
viewInfo.numLayers = 1;
break;
case D3D11_RTV_DIMENSION_UNKNOWN:
case D3D11_VPIV_DIMENSION_UNKNOWN:
throw DxvkError("Invalid view dimension");
}
@ -277,7 +277,7 @@ namespace dxvk {
viewInfo.numLayers = m_desc.Texture2DArray.ArraySize;
break;
case D3D11_RTV_DIMENSION_UNKNOWN:
case D3D11_VPOV_DIMENSION_UNKNOWN:
throw DxvkError("Invalid view dimension");
}