diff options
Diffstat (limited to 'src/gallium/state_trackers/nine/device9.c')
-rw-r--r-- | src/gallium/state_trackers/nine/device9.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/gallium/state_trackers/nine/device9.c b/src/gallium/state_trackers/nine/device9.c index d48f47d5bd4..c16f7284799 100644 --- a/src/gallium/state_trackers/nine/device9.c +++ b/src/gallium/state_trackers/nine/device9.c @@ -3359,8 +3359,9 @@ NineDevice9_CreateQuery( struct NineDevice9 *This, DBG("This=%p Type=%d ppQuery=%p\n", This, Type, ppQuery); - if (!ppQuery) - return nine_is_query_supported(Type); + hr = nine_is_query_supported(Type); + if (!ppQuery || hr != D3D_OK) + return hr; hr = NineQuery9_new(This, &query, Type); if (FAILED(hr)) |