forked from AuroraMiddleware/gtk
glarea: Remove useless function
The function should have been gone in
27cf0fa34c
This commit is contained in:
parent
f1ec76a9c1
commit
3575df8ee2
@ -524,24 +524,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
|
static void
|
||||||
gtk_gl_area_unrealize (GtkWidget *widget)
|
gtk_gl_area_unrealize (GtkWidget *widget)
|
||||||
{
|
{
|
||||||
@ -698,7 +680,6 @@ gtk_gl_area_draw (GtkWidget *widget,
|
|||||||
priv->texture ? GL_TEXTURE : GL_RENDERBUFFER,
|
priv->texture ? GL_TEXTURE : GL_RENDERBUFFER,
|
||||||
scale, 0, 0, w, h);
|
scale, 0, 0, w, h);
|
||||||
gtk_gl_area_make_current (area);
|
gtk_gl_area_make_current (area);
|
||||||
gtk_gl_area_post_render (area);
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user