Alexander Dorofeyev : wined3d: Add ENTER_GL/ LEAVE_GL in IWineD3DEventQueryImpl_GetData.
Alexandre Julliard
julliard at winehq.org
Mon Apr 7 14:46:57 CDT 2008
Module: wine
Branch: master
Commit: 84553fd8645d4a4a6065e7ea1b9e2094f834a788
URL: http://source.winehq.org/git/wine.git/?a=commit;h=84553fd8645d4a4a6065e7ea1b9e2094f834a788
Author: Alexander Dorofeyev <alexd4 at inbox.lv>
Date: Mon Apr 7 00:06:15 2008 +0300
wined3d: Add ENTER_GL/LEAVE_GL in IWineD3DEventQueryImpl_GetData.
---
dlls/wined3d/query.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/dlls/wined3d/query.c b/dlls/wined3d/query.c
index 85832e4..2b95d38 100644
--- a/dlls/wined3d/query.c
+++ b/dlls/wined3d/query.c
@@ -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;
More information about the wine-cvs
mailing list