From f9add97a07fd905fc5bf75896c85c2ca09795e26 Mon Sep 17 00:00:00 2001 From: Philip Rebohle Date: Tue, 11 Sep 2018 12:14:59 +0200 Subject: [PATCH] [d3d11] Fix Begin/End for all queries other than Event and Timestamp --- src/d3d11/d3d11_query.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/d3d11/d3d11_query.cpp b/src/d3d11/d3d11_query.cpp index c51cf5284..3e64e22c5 100644 --- a/src/d3d11/d3d11_query.cpp +++ b/src/d3d11/d3d11_query.cpp @@ -146,9 +146,8 @@ namespace dxvk { bool D3D11Query::HasBeginEnabled() const { - return m_desc.Query == D3D11_QUERY_OCCLUSION - || m_desc.Query == D3D11_QUERY_OCCLUSION_PREDICATE - || m_desc.Query == D3D11_QUERY_PIPELINE_STATISTICS; + return m_desc.Query != D3D11_QUERY_EVENT + && m_desc.Query != D3D11_QUERY_TIMESTAMP; }