diff --git a/src/d3d11/d3d11_context.cpp b/src/d3d11/d3d11_context.cpp index 854a063a6..ec81e5f7e 100644 --- a/src/d3d11/d3d11_context.cpp +++ b/src/d3d11/d3d11_context.cpp @@ -326,10 +326,10 @@ namespace dxvk { BOOL* pPredicateValue) { D3D10DeviceLock lock = LockContext(); - if (ppPredicate != nullptr) - D3D11Query::AsPredicate(m_state.pr.predicateObject.ref()); + if (ppPredicate) + *ppPredicate = D3D11Query::AsPredicate(m_state.pr.predicateObject.ref()); - if (pPredicateValue != nullptr) + if (pPredicateValue) *pPredicateValue = m_state.pr.predicateValue; }