From f24289e49a07b934863fca588fd09225b05cb4dc Mon Sep 17 00:00:00 2001 From: Alexander Dorofeyev Date: Mon, 7 Apr 2008 00:06:07 +0300 Subject: [PATCH] wined3d: Add ENTER_GL/LEAVE_GL in IWineD3DQueryImpl_Release. --- dlls/wined3d/query.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dlls/wined3d/query.c b/dlls/wined3d/query.c index 4c343bfbfb0..f3b9cc69d52 100644 --- a/dlls/wined3d/query.c +++ b/dlls/wined3d/query.c @@ -62,6 +62,7 @@ static ULONG WINAPI IWineD3DQueryImpl_Release(IWineD3DQuery *iface) { TRACE("(%p) : Releasing from %d\n", This, This->ref); ref = InterlockedDecrement(&This->ref); if (ref == 0) { + ENTER_GL(); if(This->type == WINED3DQUERYTYPE_EVENT) { if(GL_SUPPORT(APPLE_FENCE)) { GL_EXTCALL(glDeleteFencesAPPLE(1, &((WineQueryEventData *)(This->extendedData))->fenceId)); @@ -74,6 +75,7 @@ static ULONG WINAPI IWineD3DQueryImpl_Release(IWineD3DQuery *iface) { GL_EXTCALL(glDeleteQueriesARB(1, &((WineQueryOcclusionData *)(This->extendedData))->queryId)); checkGLcall("glDeleteQueriesARB"); } + LEAVE_GL(); HeapFree(GetProcessHeap(), 0, This->extendedData); HeapFree(GetProcessHeap(), 0, This); -- 2.11.4.GIT