Module: wine Branch: master Commit: 93fefdf94d2fdb8b2bf1bc70ee1853307eebe156 URL: http://source.winehq.org/git/wine.git/?a=commit;h=93fefdf94d2fdb8b2bf1bc70ee...
Author: Alexander Dorofeyev alexd4@inbox.lv Date: Mon Apr 7 00:06:17 2008 +0300
wined3d: Add ENTER_GL/LEAVE_GL in IWineD3DEventQueryImpl_Issue.
---
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 2b95d38..96651bc 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 */