From 2711b8460173e359a0fb9db31d85648bfa4e5365 Mon Sep 17 00:00:00 2001 From: Alexander Dorofeyev Date: Mon, 7 Apr 2008 00:06:12 +0300 Subject: [PATCH] wined3d: Add ENTER_GL/LEAVE_GL in IWineD3DOcclusionQueryImpl_GetData. --- dlls/wined3d/query.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dlls/wined3d/query.c b/dlls/wined3d/query.c index f3b9cc69d52..85832e4f88f 100644 --- a/dlls/wined3d/query.c +++ b/dlls/wined3d/query.c @@ -288,6 +288,7 @@ static HRESULT WINAPI IWineD3DOcclusionQueryImpl_GetData(IWineD3DQuery* iface, GLuint samples; GLuint queryId = ((WineQueryOcclusionData *)This->extendedData)->queryId; + ENTER_GL(); GL_EXTCALL(glGetQueryObjectuivARB(queryId, GL_QUERY_RESULT_AVAILABLE_ARB, &available)); checkGLcall("glGetQueryObjectuivARB(GL_QUERY_RESULT_AVAILABLE)\n"); TRACE("(%p) : available %d.\n", This, available); @@ -303,6 +304,7 @@ static HRESULT WINAPI IWineD3DOcclusionQueryImpl_GetData(IWineD3DQuery* iface, } else { res = S_FALSE; } + LEAVE_GL(); } else { WARN("(%p) : Occlusion queries not supported, or wrong context. Returning 1.\n", This); *data = 1;