summaryrefslogtreecommitdiff
path: root/gdk/wayland
diff options
context:
space:
mode:
authorAlexander Larsson <alexl@redhat.com>2014-11-20 12:22:06 +0100
committerAlexander Larsson <alexl@redhat.com>2014-11-20 12:38:04 +0100
commitcf94da2ca1880340f146293916efffda679ca7a6 (patch)
treeb5cf19a4f72bc915c5e3aee87e7f88e86295b13e /gdk/wayland
parent800c712738f5666937e32d9f8cb32353513b9423 (diff)
downloadgtk+-cf94da2ca1880340f146293916efffda679ca7a6.tar.gz
GdkGLContext: Remove unused update vfunc
The update virtual function for GdkGLContext is unused and is a leftover from a previous GL approach. Just remove it. https://bugzilla.gnome.org/show_bug.cgi?id=739750
Diffstat (limited to 'gdk/wayland')
-rw-r--r--gdk/wayland/gdkglcontext-wayland.c19
1 files changed, 0 insertions, 19 deletions
diff --git a/gdk/wayland/gdkglcontext-wayland.c b/gdk/wayland/gdkglcontext-wayland.c
index 04d9094793..c8d4ed2b22 100644
--- a/gdk/wayland/gdkglcontext-wayland.c
+++ b/gdk/wayland/gdkglcontext-wayland.c
@@ -37,24 +37,6 @@ G_DEFINE_TYPE (GdkWaylandGLContext, gdk_wayland_gl_context, GDK_TYPE_GL_CONTEXT)
static void gdk_x11_gl_context_dispose (GObject *gobject);
-static void
-gdk_wayland_gl_context_update (GdkGLContext *context)
-{
- GdkWindow *window = gdk_gl_context_get_window (context);
- int width, height;
-
- gdk_gl_context_make_current (context);
-
- width = gdk_window_get_width (window);
- height = gdk_window_get_height (window);
-
- GDK_NOTE (OPENGL, g_print ("Updating GL viewport size to { %d, %d } for window %p (context: %p)\n",
- width, height,
- window, context));
-
- glViewport (0, 0, width, height);
-}
-
void
gdk_wayland_window_invalidate_for_new_frame (GdkWindow *window,
cairo_region_t *update_area)
@@ -163,7 +145,6 @@ gdk_wayland_gl_context_class_init (GdkWaylandGLContextClass *klass)
GdkGLContextClass *context_class = GDK_GL_CONTEXT_CLASS (klass);
GObjectClass *gobject_class = G_OBJECT_CLASS (klass);
- context_class->update = gdk_wayland_gl_context_update;
context_class->end_frame = gdk_wayland_gl_context_end_frame;
gobject_class->dispose = gdk_x11_gl_context_dispose;
}