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:
Roderick Colenbrander 2005-10-31 09:59:56 +00:00 committed by Alexandre Julliard
parent 559427023f
commit 9970133f2b
1 changed files with 1 additions and 3 deletions

View File

@ -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) {