[gtk+] gdk_cairo_draw_from_gl: Remove useless call
- From: Alexander Larsson <alexl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] gdk_cairo_draw_from_gl: Remove useless call
- Date: Thu, 6 Nov 2014 11:25:39 +0000 (UTC)
commit 7fde5213b011782c692d2d18f52649a463307166
Author: Alexander Larsson <alexl redhat com>
Date: Thu Nov 6 09:21:35 2014 +0100
gdk_cairo_draw_from_gl: Remove useless call
The glFramebufferTexture2DEXT call makes no sense here, we're
not using the texture as a framebuffer, just as a normal
texture source.
gdk/gdkgl.c | 2 --
1 files changed, 0 insertions(+), 2 deletions(-)
---
diff --git a/gdk/gdkgl.c b/gdk/gdkgl.c
index a41d886..3a6d281 100644
--- a/gdk/gdkgl.c
+++ b/gdk/gdkgl.c
@@ -462,8 +462,6 @@ gdk_cairo_draw_from_gl (cairo_t *cr,
glTexParameteri (GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_REPEAT);
glTexParameteri (GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_NEAREST);
glTexParameteri (GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_NEAREST);
- glFramebufferTexture2DEXT (GL_FRAMEBUFFER_EXT, GL_COLOR_ATTACHMENT0_EXT,
- GL_TEXTURE_2D, source, 0);
glEnable (GL_SCISSOR_TEST);
glEnable (GL_TEXTURE_2D);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]