Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/doitsujin/dxvk.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/d3d11/d3d11_context.cpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/d3d11/d3d11_context.cpp b/src/d3d11/d3d11_context.cpp
index 977a403e..4b06ae38 100644
--- a/src/d3d11/d3d11_context.cpp
+++ b/src/d3d11/d3d11_context.cpp
@@ -386,11 +386,16 @@ namespace dxvk {
const UINT Values[4]) {
D3D10DeviceLock lock = LockContext();
- auto uav = static_cast<D3D11UnorderedAccessView*>(pUnorderedAccessView);
+ if (!pUnorderedAccessView)
+ return;
- if (!uav)
+ Com<ID3D11UnorderedAccessView> qiUav;
+
+ if (FAILED(pUnorderedAccessView->QueryInterface(IID_PPV_ARGS(&qiUav))))
return;
+ auto uav = static_cast<D3D11UnorderedAccessView*>(qiUav.ptr());
+
// Gather UAV format info. We'll use this to determine
// whether we need to create a temporary view or not.
D3D11_UNORDERED_ACCESS_VIEW_DESC uavDesc;