Alexander Dorofeyev : wined3d: Add ENTER_GL/ LEAVE_GL in IWineD3DQueryImpl_Release.

Alexandre Julliard julliard at winehq.org
Mon Apr 7 14:46:56 CDT 2008


Module: wine
Branch: master
Commit: f24289e49a07b934863fca588fd09225b05cb4dc
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=f24289e49a07b934863fca588fd09225b05cb4dc

Author: Alexander Dorofeyev <alexd4 at inbox.lv>
Date:   Mon Apr  7 00:06:07 2008 +0300

wined3d: Add ENTER_GL/LEAVE_GL in IWineD3DQueryImpl_Release.

---

 dlls/wined3d/query.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/dlls/wined3d/query.c b/dlls/wined3d/query.c
index 4c343bf..f3b9cc6 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);




More information about the wine-cvs mailing list