1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2024-11-29 19:24:10 +01:00

[d3d11] Show SetPredication message only when the predicate is not NULL

Helps determine which games actually use the feature.
This commit is contained in:
Philip Rebohle 2018-10-15 19:34:59 +02:00
parent 56e9bba279
commit e0e945f724
No known key found for this signature in database
GPG Key ID: C8CC613427A31C99

View File

@ -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<D3D11Query*>(pPredicate);