Commit 93fefdf9 authored by Alexander Dorofeyev's avatar Alexander Dorofeyev Committed by Alexandre Julliard

wined3d: Add ENTER_GL/LEAVE_GL in IWineD3DEventQueryImpl_Issue.

parent 84553fd8
...@@ -429,11 +429,15 @@ static HRESULT WINAPI IWineD3DEventQueryImpl_Issue(IWineD3DQuery* iface, DWORD ...@@ -429,11 +429,15 @@ static HRESULT WINAPI IWineD3DEventQueryImpl_Issue(IWineD3DQuery* iface, DWORD
*/ */
WARN("Query context not active\n"); WARN("Query context not active\n");
} else if(GL_SUPPORT(APPLE_FENCE)) { } else if(GL_SUPPORT(APPLE_FENCE)) {
ENTER_GL();
GL_EXTCALL(glSetFenceAPPLE(((WineQueryEventData *)This->extendedData)->fenceId)); GL_EXTCALL(glSetFenceAPPLE(((WineQueryEventData *)This->extendedData)->fenceId));
checkGLcall("glSetFenceAPPLE"); checkGLcall("glSetFenceAPPLE");
LEAVE_GL();
} else if (GL_SUPPORT(NV_FENCE)) { } else if (GL_SUPPORT(NV_FENCE)) {
ENTER_GL();
GL_EXTCALL(glSetFenceNV(((WineQueryEventData *)This->extendedData)->fenceId, GL_ALL_COMPLETED_NV)); GL_EXTCALL(glSetFenceNV(((WineQueryEventData *)This->extendedData)->fenceId, GL_ALL_COMPLETED_NV));
checkGLcall("glSetFenceNV"); checkGLcall("glSetFenceNV");
LEAVE_GL();
} }
} else if(dwIssueFlags & WINED3DISSUE_BEGIN) { } else if(dwIssueFlags & WINED3DISSUE_BEGIN) {
/* Started implicitly at device creation */ /* Started implicitly at device creation */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment