wined3d: Add ENTER_GL/LEAVE_GL in IWineD3DEventQueryImpl_Issue.
authorAlexander Dorofeyev <alexd4@inbox.lv>
Sun, 6 Apr 2008 21:06:17 +0000 (00:06 +0300)
committerAlexandre Julliard <julliard@winehq.org>
Mon, 7 Apr 2008 19:18:12 +0000 (21:18 +0200)
dlls/wined3d/query.c

index 2b95d387d5131e6eb5a816879133ab36cc4ddd55..96651bc703bba48aa2f4dc060a0b44811eea2ac4 100644 (file)
@@ -429,11 +429,15 @@ static HRESULT  WINAPI IWineD3DEventQueryImpl_Issue(IWineD3DQuery* iface,  DWORD
              */
             WARN("Query context not active\n");
         } else if(GL_SUPPORT(APPLE_FENCE)) {
+            ENTER_GL();
             GL_EXTCALL(glSetFenceAPPLE(((WineQueryEventData *)This->extendedData)->fenceId));
             checkGLcall("glSetFenceAPPLE");
+            LEAVE_GL();
         } else if (GL_SUPPORT(NV_FENCE)) {
+            ENTER_GL();
             GL_EXTCALL(glSetFenceNV(((WineQueryEventData *)This->extendedData)->fenceId, GL_ALL_COMPLETED_NV));
             checkGLcall("glSetFenceNV");
+            LEAVE_GL();
         }
     } else if(dwIssueFlags & WINED3DISSUE_BEGIN) {
         /* Started implicitly at device creation */