Jörg Höhle : wined3d: Check GL_SUPPORT prior to an ARB occlusion call.

Alexandre Julliard julliard at winehq.org
Tue Aug 18 09:59:52 CDT 2009


Module: wine
Branch: master
Commit: 7763da811bdee8ef1bfec9f18763c45b799d41ee
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=7763da811bdee8ef1bfec9f18763c45b799d41ee

Author: Jörg Höhle <hoehle at users.sourceforge.net>
Date:   Fri Aug 14 18:12:49 2009 +0200

wined3d: Check GL_SUPPORT prior to an ARB occlusion call.

---

 dlls/wined3d/context.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/dlls/wined3d/context.c b/dlls/wined3d/context.c
index 87416b7..ea664aa 100644
--- a/dlls/wined3d/context.c
+++ b/dlls/wined3d/context.c
@@ -675,7 +675,8 @@ static void context_destroy_gl_resources(struct wined3d_context *context)
             GL_EXTCALL(glDeleteProgramsARB(1, &context->dummy_arbfp_prog));
         }
 
-        GL_EXTCALL(glDeleteQueriesARB(context->free_occlusion_query_count, context->free_occlusion_queries));
+        if (GL_SUPPORT(ARB_OCCLUSION_QUERY))
+            GL_EXTCALL(glDeleteQueriesARB(context->free_occlusion_query_count, context->free_occlusion_queries));
 
         if (GL_SUPPORT(APPLE_FENCE))
             GL_EXTCALL(glDeleteFencesAPPLE(context->free_event_query_count, context->free_event_queries));




More information about the wine-cvs mailing list