1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2025-03-13 19:29:14 +01:00

[d3d11] Improve CreatePredicate logging

This commit is contained in:
Joshua Ashton 2019-04-25 11:50:43 +01:00 committed by Philip Rebohle
parent 4eff83bdee
commit 60827c1b22

View File

@ -991,8 +991,13 @@ namespace dxvk {
ID3D11Predicate** ppPredicate) {
InitReturnPtr(ppPredicate);
if (pPredicateDesc == nullptr || pPredicateDesc->Query != D3D11_QUERY_OCCLUSION_PREDICATE)
if (pPredicateDesc == nullptr)
return E_INVALIDARG;
if (pPredicateDesc->Query != D3D11_QUERY_OCCLUSION_PREDICATE) {
Logger::warn(str::format("D3D11: Unhandled predicate type: ", pPredicateDesc->Query));
return E_INVALIDARG;
}
if (ppPredicate == nullptr)
return S_FALSE;