Module: wine Branch: master Commit: 2711b8460173e359a0fb9db31d85648bfa4e5365 URL: http://source.winehq.org/git/wine.git/?a=commit;h=2711b8460173e359a0fb9db31d...
Author: Alexander Dorofeyev alexd4@inbox.lv Date: Mon Apr 7 00:06:12 2008 +0300
wined3d: Add ENTER_GL/LEAVE_GL in IWineD3DOcclusionQueryImpl_GetData.
---
dlls/wined3d/query.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/dlls/wined3d/query.c b/dlls/wined3d/query.c index f3b9cc6..85832e4 100644 --- a/dlls/wined3d/query.c +++ b/dlls/wined3d/query.c @@ -288,6 +288,7 @@ static HRESULT WINAPI IWineD3DOcclusionQueryImpl_GetData(IWineD3DQuery* iface, GLuint samples; GLuint queryId = ((WineQueryOcclusionData *)This->extendedData)->queryId;
+ ENTER_GL(); GL_EXTCALL(glGetQueryObjectuivARB(queryId, GL_QUERY_RESULT_AVAILABLE_ARB, &available)); checkGLcall("glGetQueryObjectuivARB(GL_QUERY_RESULT_AVAILABLE)\n"); TRACE("(%p) : available %d.\n", This, available); @@ -303,6 +304,7 @@ static HRESULT WINAPI IWineD3DOcclusionQueryImpl_GetData(IWineD3DQuery* iface, } else { res = S_FALSE; } + LEAVE_GL(); } else { WARN("(%p) : Occlusion queries not supported, or wrong context. Returning 1.\n", This); *data = 1;