Commit 7763da81 authored by Jörg Höhle's avatar Jörg Höhle Committed by Alexandre Julliard

wined3d: Check GL_SUPPORT prior to an ARB occlusion call.

parent da1784bb
......@@ -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));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment