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()};