From e0e945f724dc05be18ce0c17dc7755294b7665d5 Mon Sep 17 00:00:00 2001 From: Philip Rebohle Date: Mon, 15 Oct 2018 19:34:59 +0200 Subject: [PATCH] [d3d11] Show SetPredication message only when the predicate is not NULL Helps determine which games actually use the feature. --- src/d3d11/d3d11_context.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/d3d11/d3d11_context.cpp b/src/d3d11/d3d11_context.cpp index 32a1b024..b691e204 100644 --- a/src/d3d11/d3d11_context.cpp +++ b/src/d3d11/d3d11_context.cpp @@ -271,7 +271,7 @@ namespace dxvk { BOOL PredicateValue) { static bool s_errorShown = false; - if (!std::exchange(s_errorShown, true)) + if (pPredicate && !std::exchange(s_errorShown, true)) Logger::err("D3D11DeviceContext::SetPredication: Stub"); m_state.pr.predicateObject = static_cast(pPredicate);