From d677b594b1a46c6b2fd198eba949d4195a0ca932 Mon Sep 17 00:00:00 2001 From: baldurk Date: Mon, 25 Mar 2019 17:48:44 +0000 Subject: [PATCH] Fix D3D11_Binding_Hazards test --- util/test/demos/d3d11/d3d11_binding_hazards.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/util/test/demos/d3d11/d3d11_binding_hazards.cpp b/util/test/demos/d3d11/d3d11_binding_hazards.cpp index 20578f057..646c7fb5a 100644 --- a/util/test/demos/d3d11/d3d11_binding_hazards.cpp +++ b/util/test/demos/d3d11/d3d11_binding_hazards.cpp @@ -83,6 +83,7 @@ void main() ctx->CSSetShaderResources(1, 1, &tempSRV.GetInterfacePtr()); + tempSRV->AddRef(); ULONG refcount = tempSRV->Release(); ID3D11ShaderResourceView *srvs[2] = {NULL, tempSRV.GetInterfacePtr()};