[1/3] wined3d: Check Occlusion query GL calls.

H. Verbeet hverbeet at gmail.com
Mon Aug 7 12:23:27 CDT 2006


These were missing.
-------------- next part --------------
 dlls/wined3d/query.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/dlls/wined3d/query.c b/dlls/wined3d/query.c
index 026a23a..93d595b 100644
--- a/dlls/wined3d/query.c
+++ b/dlls/wined3d/query.c
@@ -159,6 +159,7 @@ static HRESULT  WINAPI IWineD3DQueryImpl
         if (GL_SUPPORT(ARB_OCCLUSION_QUERY)) {
             GLint samples;
             GL_EXTCALL(glGetQueryObjectivARB(((WineQueryOcclusionData *)This->extendedData)->queryId, GL_QUERY_RESULT_ARB, &samples));
+            checkGLcall("glGetQueryObjectiv()\n");
             TRACE("(%p) : Returning %d samples.\n", This, samples);
             *data = samples;
         } else {
@@ -326,9 +327,11 @@ static HRESULT  WINAPI IWineD3DQueryImpl
             if (GL_SUPPORT(ARB_OCCLUSION_QUERY)) {
                 if (dwIssueFlags & D3DISSUE_BEGIN) {
                     GL_EXTCALL(glBeginQueryARB(GL_SAMPLES_PASSED_ARB, ((WineQueryOcclusionData *)This->extendedData)->queryId));
+                    checkGLcall("glBeginQuery()");
                 }
                 if (dwIssueFlags & D3DISSUE_END) {
                     GL_EXTCALL(glEndQueryARB(GL_SAMPLES_PASSED_ARB));
+                    checkGLcall("glEndQuery()");
                 }
             } else {
                 FIXME("(%p) : Occlusion queries not supported\n", This);


More information about the wine-patches mailing list