wined3d: Add ENTER_GL/LEAVE_GL in IWineD3DEventQueryImpl_Issue.

This commit is contained in:
Alexander Dorofeyev 2008-04-07 00:06:17 +03:00 committed by Alexandre Julliard
parent 84553fd864
commit 93fefdf94d
1 changed files with 4 additions and 0 deletions

View 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 */