From 45374e25360500f31dd23b0ffcb341aeb26906f2 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Andre Date: Thu, 27 Nov 2014 20:15:40 +0900 Subject: [PATCH] Evas GL: Also add read bgra for desktop GL --- src/modules/evas/engines/gl_common/evas_gl_api_ext.c | 7 +++++-- src/modules/evas/engines/gl_common/evas_gl_api_ext_def.h | 8 ++------ 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/src/modules/evas/engines/gl_common/evas_gl_api_ext.c b/src/modules/evas/engines/gl_common/evas_gl_api_ext.c index a79efdde38..ef3e87f592 100644 --- a/src/modules/evas/engines/gl_common/evas_gl_api_ext.c +++ b/src/modules/evas/engines/gl_common/evas_gl_api_ext.c @@ -264,8 +264,11 @@ evgl_api_ext_init(void *getproc, const char *glueexts) #ifndef GL_GLES /* Add some extension strings that are always working on desktop GL */ - strcat(_gl_ext_string, "GL_EXT_texture_format_BGRA8888 "); - strcat(_gl_ext_string_official, "GL_EXT_texture_format_BGRA8888 "); + static const char *desktop_exts = + "GL_EXT_read_format_bgra " + "GL_EXT_texture_format_BGRA8888"; + strcpy(_gl_ext_string, desktop_exts); + strcpy(_gl_ext_string_official, desktop_exts); #endif ///////////////////////////////////////////////////////////////////////////////////////////////////// diff --git a/src/modules/evas/engines/gl_common/evas_gl_api_ext_def.h b/src/modules/evas/engines/gl_common/evas_gl_api_ext_def.h index 135ce74dc9..83d4188107 100644 --- a/src/modules/evas/engines/gl_common/evas_gl_api_ext_def.h +++ b/src/modules/evas/engines/gl_common/evas_gl_api_ext_def.h @@ -409,11 +409,7 @@ _EVASGL_EXT_BEGIN(blend_minmax) _EVASGL_EXT_DRVNAME(GL_EXT_blend_minmax) _EVASGL_EXT_END() -_EVASGL_EXT_BEGIN(read_format_bgra) // Desktop differs - _EVASGL_EXT_DRVNAME(GL_EXT_read_format_bgra) -_EVASGL_EXT_END() - -_EVASGL_EXT_BEGIN(read_format_bgra_DESKTOP) // Desktop differs +_EVASGL_EXT_BEGIN(read_format_bgra) // Desktop has it from GL 1.2 _EVASGL_EXT_DRVNAME(GL_EXT_read_format_bgra) _EVASGL_EXT_END() @@ -421,7 +417,7 @@ _EVASGL_EXT_BEGIN(texture_filter_anisotropic) _EVASGL_EXT_DRVNAME(GL_EXT_texture_filter_anisotropic) _EVASGL_EXT_END() -_EVASGL_EXT_BEGIN(texture_format_BGRA8888) +_EVASGL_EXT_BEGIN(texture_format_BGRA8888) // Desktop has it from GL 1.2 _EVASGL_EXT_DRVNAME(GL_EXT_texture_format_BGRA8888) _EVASGL_EXT_END()