[gtk+] glarea: Remove useless function
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] glarea: Remove useless function
- Date: Sat, 31 Jan 2015 00:55:41 +0000 (UTC)
commit 3575df8ee24a4e9e7c59260d66e0e087be852e69
Author: Benjamin Otte <otte redhat com>
Date: Sat Jan 31 01:55:04 2015 +0100
glarea: Remove useless function
The function should have been gone in
27cf0fa34c3a51ddb50391f21aaf2e3984d6dddb
gtk/gtkglarea.c | 19 -------------------
1 files changed, 0 insertions(+), 19 deletions(-)
---
diff --git a/gtk/gtkglarea.c b/gtk/gtkglarea.c
index cbf1c92..ee7a30f 100644
--- a/gtk/gtkglarea.c
+++ b/gtk/gtkglarea.c
@@ -525,24 +525,6 @@ gtk_gl_area_delete_buffers (GtkGLArea *area)
}
static void
-gtk_gl_area_post_render (GtkGLArea *area)
-{
- GtkGLAreaPrivate *priv = gtk_gl_area_get_instance_private (area);
- GLenum invalidate[4];
- int i = 0;
-
- if (priv->has_depth_buffer)
- invalidate[i++] = GL_DEPTH_ATTACHMENT;
-
- if (priv->has_stencil_buffer)
- invalidate[i++] = GL_STENCIL_ATTACHMENT;
-
- if (priv->auto_render)
- invalidate[i++] = GL_COLOR_ATTACHMENT0;
-}
-
-
-static void
gtk_gl_area_unrealize (GtkWidget *widget)
{
GtkGLArea *area = GTK_GL_AREA (widget);
@@ -698,7 +680,6 @@ gtk_gl_area_draw (GtkWidget *widget,
priv->texture ? GL_TEXTURE : GL_RENDERBUFFER,
scale, 0, 0, w, h);
gtk_gl_area_make_current (area);
- gtk_gl_area_post_render (area);
}
else
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]