wined3d: Add ENTER_GL/LEAVE_GL in IWineD3DEventQueryImpl_GetData.

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

View File

@ -327,11 +327,15 @@ static HRESULT WINAPI IWineD3DEventQueryImpl_GetData(IWineD3DQuery* iface, void
WARN("Query context not active, reporting GPU idle\n");
*data = TRUE;
} else if(GL_SUPPORT(APPLE_FENCE)) {
ENTER_GL();
*data = GL_EXTCALL(glTestFenceAPPLE(((WineQueryEventData *)This->extendedData)->fenceId));
checkGLcall("glTestFenceAPPLE");
LEAVE_GL();
} else if(GL_SUPPORT(NV_FENCE)) {
ENTER_GL();
*data = GL_EXTCALL(glTestFenceNV(((WineQueryEventData *)This->extendedData)->fenceId));
checkGLcall("glTestFenceNV");
LEAVE_GL();
} else {
WARN("(%p): reporting GPU idle\n", This);
*data = TRUE;