Example #1
0
/**
 * gdk_gl_context_destroy:
 * @glcontext: a #GdkGLContext.
 *
 * Destroys the OpenGL resources associated with @glcontext and
 * decrements @glcontext's reference count.
 **/
void gdk_gl_context_destroy(GdkGLContext *glcontext)
{
	g_return_if_fail(GDK_IS_GL_CONTEXT(glcontext));

	_gdk_gl_context_destroy(glcontext);
	g_object_unref(G_OBJECT(glcontext));
}
Example #2
0
static void
gdk_gl_context_impl_win32_finalize (GObject *object)
{
  GdkGLContextImplWin32 *impl = GDK_GL_CONTEXT_IMPL_WIN32 (object);

  GDK_GL_NOTE_FUNC_PRIVATE ();

  _gdk_gl_context_destroy (GDK_GL_CONTEXT (object));

  g_object_unref (G_OBJECT (impl->glconfig));

  if (impl->share_list != NULL)
    g_object_unref (G_OBJECT (impl->share_list));

  G_OBJECT_CLASS (gdk_gl_context_impl_win32_parent_class)->finalize (object);
}