summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRafael Antognolli <rafael.antognolli@intel.com>2013-05-20 14:19:45 -0300
committerRafael Antognolli <rafael.antognolli@intel.com>2013-05-20 14:21:56 -0300
commit99be49551e59c99c13192dd7d454d8d2dbcd42ba (patch)
tree42a7b05beb58000a910dd776a5989b6b6a0da78d
parent5da4fce18a6438f14a94816cd50f07390f396c95 (diff)
downloadefl-99be49551e59c99c13192dd7d454d8d2dbcd42ba.tar.gz
evas/gl: Use GL_FRAMEBUFFER_BINDING, which is available on both.
Instead of a define from GL_DRAW_FRAMEBUFFER_BINDING to the above one, just use it directly since it's available on gles and full gl.
-rw-r--r--src/modules/evas/engines/gl_common/evas_gl_texture.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/modules/evas/engines/gl_common/evas_gl_texture.c b/src/modules/evas/engines/gl_common/evas_gl_texture.c
index 664ee3d85b..f05a4e880e 100644
--- a/src/modules/evas/engines/gl_common/evas_gl_texture.c
+++ b/src/modules/evas/engines/gl_common/evas_gl_texture.c
@@ -383,9 +383,6 @@ _pool_tex_render_new(Evas_Engine_GL_Context *gc, int w, int h, int intformat, in
# ifndef GL_COLOR_ATTACHMENT0
# define GL_COLOR_ATTACHMENT0 GL_COLOR_ATTACHMENT0_OES
# endif
-# ifndef GL_DRAW_FRAMEBUFFER_BINDING
-# define GL_DRAW_FRAMEBUFFER_BINDING GL_FRAMEBUFFER_BINDING
-# endif
#else
# ifndef GL_FRAMEBUFFER
# define GL_FRAMEBUFFER GL_FRAMEBUFFER_EXT
@@ -399,7 +396,7 @@ _pool_tex_render_new(Evas_Engine_GL_Context *gc, int w, int h, int intformat, in
_print_tex_count();
- glGetIntegerv(GL_DRAW_FRAMEBUFFER_BINDING, &fnum);
+ glGetIntegerv(GL_FRAMEBUFFER_BINDING, &fnum);
glGenTextures(1, &(pt->texture));
GLERR(__FUNCTION__, __FILE__, __LINE__, "");
glBindTexture(GL_TEXTURE_2D, pt->texture);