Evas GL: Always support BGRA8888 on desktop GL

This commit is contained in:
Jean-Philippe Andre 2014-11-27 19:47:41 +09:00
parent d8a4792612
commit eaefb7c047
2 changed files with 9 additions and 9 deletions

View File

@ -258,6 +258,14 @@ evgl_api_ext_init(void *getproc, const char *glueexts)
memset(_gl_ext_string, 0, MAX_EXTENSION_STRING_BUFFER);
memset(_gl_ext_string_official, 0, MAX_EXTENSION_STRING_BUFFER);
#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 ");
#endif
/////////////////////////////////////////////////////////////////////////////////////////////////////
#define FINDSYM(getproc, dst, sym) \
if (getproc) { \
if (!dst) dst = (__typeof__(dst))getproc(sym); \
@ -348,10 +356,6 @@ re->info->info.screen);
#undef _EVASGL_EXT_FUNCTION_DRVFUNC_PROCADDR
#undef GETPROCADDR
/////////////////////////////////////////////////////////////////////////////////////////////////////
_gl_ext_string[0] = 0;
_gl_ext_string_official[0] = 0;
/////////////////////////////////////////////////////////////////////////////////////////////////////
// Extension HEADER

View File

@ -423,11 +423,7 @@ _EVASGL_EXT_BEGIN(texture_filter_anisotropic)
_EVASGL_EXT_DRVNAME(GL_EXT_texture_filter_anisotropic)
_EVASGL_EXT_END()
_EVASGL_EXT_BEGIN(texture_format_BGRA8888) // Desktop differs
_EVASGL_EXT_DRVNAME(GL_EXT_texture_format_BGRA8888)
_EVASGL_EXT_END()
_EVASGL_EXT_BEGIN(texture_format_BGRA8888_DESKTOP) // Desktop differs
_EVASGL_EXT_BEGIN(texture_format_BGRA8888)
_EVASGL_EXT_DRVNAME(GL_EXT_texture_format_BGRA8888)
_EVASGL_EXT_END()