That way we ensure that the GL context(s) get disposed, which they
previously weren't due to them still being the current context.
This also implicitly adds testing of gLContext destruction, which
previously wasn't ever done by any test.
gsk_renderer_unrealize (gl_renderer);
g_clear_object (&gl_renderer);
}
+ gdk_gl_context_clear_current ();
return result;
}
g_clear_pointer (&loop, g_main_loop_unref);
g_clear_object (&gl_renderer);
g_main_context_release (NULL);
+ gdk_gl_context_clear_current ();
}
int