st/nine: Queries: always succeed for D3DQUERYTYPE_TIMESTAMP when flushing

This is the behaviour that Wine tests

Tested-by: David Heidelberg <david@ixit.cz>
Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
Signed-off-by: Axel Davy <axel.davy@ens.fr>
This commit is contained in:
Axel Davy
2014-12-02 22:01:44 +01:00
parent 225d7f8e0e
commit 2f78259c11
+3
View File
@@ -223,6 +223,9 @@ NineQuery9_GetData( struct NineQuery9 *This,
wait_query_result = TRUE;
}
/* Wine tests: D3DQUERYTYPE_TIMESTAMP always succeeds */
wait_query_result |= This->type == D3DQUERYTYPE_TIMESTAMP;
/* Note: We ignore dwGetDataFlags, because get_query_result will
* flush automatically if needed */