wined3d: Check GL_SUPPORT prior to an ARB occlusion call.

This commit is contained in:
Jörg Höhle 2009-08-14 18:12:49 +02:00 committed by Alexandre Julliard
parent da1784bb9e
commit 7763da811b
1 changed files with 2 additions and 1 deletions

View File

@ -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));