diff --git a/src/d3d11/d3d11_query.cpp b/src/d3d11/d3d11_query.cpp index 1a027887..ccafb620 100644 --- a/src/d3d11/d3d11_query.cpp +++ b/src/d3d11/d3d11_query.cpp @@ -302,6 +302,9 @@ namespace dxvk { DxvkBufferSlice D3D11Query::GetPredicate(DxvkContext* ctx) { std::lock_guard lock(m_predicateLock); + if (unlikely(m_desc.Query != D3D11_QUERY_OCCLUSION_PREDICATE)) + return DxvkBufferSlice(); + if (unlikely(!m_predicate.defined())) { m_predicate = m_device->AllocPredicateSlice(); ctx->writePredicate(m_predicate, m_query);