1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2024-12-01 16:24:12 +01:00

[d3d9] Don't InitReturnPtr in CreateQuery

Matches native behaviour

Fixes a Wine test
This commit is contained in:
Joshua Ashton 2020-02-28 21:51:34 +00:00
parent 5548493fad
commit 36d3e8e83d

View File

@ -3160,8 +3160,6 @@ namespace dxvk {
HRESULT STDMETHODCALLTYPE D3D9DeviceEx::CreateQuery(D3DQUERYTYPE Type, IDirect3DQuery9** ppQuery) {
InitReturnPtr(ppQuery);
HRESULT hr = D3D9Query::QuerySupported(this, Type);
if (ppQuery == nullptr || hr != D3D_OK)