return;
}
- damage = gdk_gl_context_get_damage (context);
+ damage = GDK_GL_CONTEXT_GET_CLASS (context)->get_damage (context);
cairo_region_union (region, damage);
cairo_region_destroy (damage);
priv->use_es = -1;
}
-/**
- * gdk_gl_context_get_damage:
- * @context: a #GdkGLContext
- *
- * Returns the part of the backbuffer that is known to be damaged and would
- * need to be redrawn. This is the area that needs to be respected in addition
- * to areas invalidated by GTK or the windowing system itself.
- *
- * Returns: The damage to the backbuffer
- **/
-cairo_region_t *
-gdk_gl_context_get_damage (GdkGLContext *context)
-{
- g_return_val_if_fail (GDK_IS_GL_CONTEXT (context), cairo_region_create ());
-
- return GDK_GL_CONTEXT_GET_CLASS (context)->get_damage (context);
-}
-
GdkGLContextPaintData *
gdk_gl_context_get_paint_data (GdkGLContext *context)
{
GDK_AVAILABLE_IN_ALL
gboolean gdk_gl_context_realize (GdkGLContext *context,
GError **error);
-GDK_AVAILABLE_IN_ALL
-cairo_region_t * gdk_gl_context_get_damage (GdkGLContext *context);
GDK_AVAILABLE_IN_ALL
void gdk_gl_context_make_current (GdkGLContext *context);