mirror of
https://github.com/reactos/wine.git
synced 2025-02-15 10:29:19 +00:00
In case of D3D9 the CreateQuery call can be used to retrieve status
information. According to MSDN the 'ppQuery' parameter can be set to NULL to detect if a certain query Type is supported.
This commit is contained in:
parent
559427023f
commit
9970133f2b
@ -124,9 +124,7 @@ HRESULT WINAPI IDirect3DDevice9Impl_CreateQuery(LPDIRECT3DDEVICE9 iface, D3DQUER
|
||||
HRESULT hr = D3D_OK;
|
||||
|
||||
TRACE("(%p) Relay\n", This);
|
||||
if (NULL == ppQuery) {
|
||||
return D3DERR_INVALIDCALL;
|
||||
}
|
||||
|
||||
/* Allocate the storage for the device */
|
||||
object = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, sizeof(IDirect3DQuery9Impl));
|
||||
if (NULL == object) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user