From f811e2c1dc43f88f6b2c495509ec1ac16ca46880 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stefan=20D=C3=B6singer?= Date: Tue, 5 Jan 2010 14:06:25 +0100 Subject: [PATCH 4/6] WineD3D: Call glFinish if an event query is read from the wrong thread --- dlls/wined3d/query.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/dlls/wined3d/query.c b/dlls/wined3d/query.c index 1280a3b..14ba014 100644 --- a/dlls/wined3d/query.c +++ b/dlls/wined3d/query.c @@ -359,7 +359,8 @@ static HRESULT WINAPI IWineD3DEventQueryImpl_GetData(IWineD3DQuery* iface, void if (query->context->tid != GetCurrentThreadId()) { /* See comment in IWineD3DQuery::Issue, event query codeblock */ - FIXME("Wrong thread, reporting GPU idle.\n"); + FIXME("Wrong thread, calling glFinish.\n"); + wglFinish(); *data = TRUE; return S_OK; -- 1.6.4.4