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

Introduced by 96b150929b.
This commit is contained in:
Adam Martinson 2011-04-29 16:48:25 -05:00 committed by Alexandre Julliard
parent 59f2e837eb
commit f912e55610
1 changed files with 4 additions and 1 deletions

View File

@ -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])
{