From 94be42eb2dc384c7c1fd33c13e448ea4b06b821b Mon Sep 17 00:00:00 2001 From: Ken Thomases Date: Thu, 11 Jan 2007 16:48:15 -0600 Subject: [PATCH] wined3d: Do not block waiting for occlusion query result in GetData. --- dlls/wined3d/query.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/wined3d/query.c b/dlls/wined3d/query.c index 32cacd6234e..9dafb1235a5 100644 --- a/dlls/wined3d/query.c +++ b/dlls/wined3d/query.c @@ -170,7 +170,7 @@ static HRESULT WINAPI IWineD3DQueryImpl_GetData(IWineD3DQuery* iface, void* pDa checkGLcall("glGetQueryObjectuivARB(GL_QUERY_RESULT_AVAILABLE)\n"); TRACE("(%p) : available %d.\n", This, available); - if (available || dwGetDataFlags & WINED3DGETDATA_FLUSH) { + if (available) { GL_EXTCALL(glGetQueryObjectuivARB(queryId, GL_QUERY_RESULT_ARB, &samples)); checkGLcall("glGetQueryObjectuivARB(GL_QUERY_RESULT)\n"); TRACE("(%p) : Returning %d samples.\n", This, samples);