Evas GL: Also add read bgra for desktop GL

This commit is contained in:
Jean-Philippe Andre 2014-11-27 20:15:40 +09:00
parent 9be96f4b96
commit 45374e2536
2 changed files with 7 additions and 8 deletions

View File

@ -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
/////////////////////////////////////////////////////////////////////////////////////////////////////

View File

@ -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()