From 93fefdf94d2fdb8b2bf1bc70ee1853307eebe156 Mon Sep 17 00:00:00 2001 From: Alexander Dorofeyev Date: Mon, 7 Apr 2008 00:06:17 +0300 Subject: [PATCH] wined3d: Add ENTER_GL/LEAVE_GL in IWineD3DEventQueryImpl_Issue. --- dlls/wined3d/query.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/dlls/wined3d/query.c b/dlls/wined3d/query.c index 2b95d387d51..96651bc703b 100644 --- a/dlls/wined3d/query.c +++ b/dlls/wined3d/query.c @@ -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 */ -- 2.11.4.GIT