Commit f912e556 authored by Adam Martinson's avatar Adam Martinson Committed by Alexandre Julliard

wined3d: Fix an oops/crash in context_destroy_gl_resources().

Introduced by 96b15092.
parent 59f2e837
......@@ -989,7 +989,10 @@ static void context_destroy_gl_resources(struct wined3d_context *context)
if (gl_info->supported[ARB_SYNC])
{
if (event_query->object.sync) GL_EXTCALL(glDeleteSync(event_query->object.sync));
for (i = 0; i < context->free_event_query_count; ++i)
{
GL_EXTCALL(glDeleteSync(context->free_event_queries[i].sync));
}
}
else if (gl_info->supported[APPLE_FENCE])
{
......
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