From 99be49551e59c99c13192dd7d454d8d2dbcd42ba Mon Sep 17 00:00:00 2001 From: Rafael Antognolli Date: Mon, 20 May 2013 14:19:45 -0300 Subject: [PATCH] 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. --- src/modules/evas/engines/gl_common/evas_gl_texture.c | 5 +---- 1 file changed, 1 insertion(+), 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);