Skip to content

Commit

Permalink
[d3d11] Fix uninitialized DSV flags
Browse files Browse the repository at this point in the history
Fixes #1242.
  • Loading branch information
doitsujin committed Dec 9, 2019
1 parent 5273e24 commit 05503e3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/d3d11/d3d11_view_dsv.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,7 @@ namespace dxvk {
D3D11_DEPTH_STENCIL_VIEW_DESC* pDesc) {
D3D11_RESOURCE_DIMENSION resourceDim = D3D11_RESOURCE_DIMENSION_UNKNOWN;
pResource->GetType(&resourceDim);
pDesc->Flags = 0;

switch (resourceDim) {
case D3D11_RESOURCE_DIMENSION_TEXTURE1D: {
Expand Down

0 comments on commit 05503e3

Please sign in to comment.