diff options
author | Jean-Philippe Andre <jp.andre@samsung.com> | 2014-10-24 19:52:51 +0900 |
---|---|---|
committer | Jean-Philippe Andre <jp.andre@samsung.com> | 2014-11-14 10:42:59 +0900 |
commit | ce3146b26250bf0fe8b30b3810eb01d2fc514bfc (patch) | |
tree | 18bda8658ccf27d1d7df81e57f65b30906dd93fe | |
parent | e18886a2a3c82adce0477f6a689c26ae62359502 (diff) | |
download | efl-ce3146b26250bf0fe8b30b3810eb01d2fc514bfc.tar.gz |
Evas GL: Add original extension names to the EVAS_GL_EXTENSIONS string
The idea is that normal opengl applications might very well want to
check for an extension using the usual string and not have to do
something special just because they're using evas_gl and not egl.
-rw-r--r-- | src/modules/evas/engines/gl_common/evas_gl_api_ext.c | 6 |
1 files changed, 4 insertions, 2 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 9addf614d5..4083e73b98 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 @@ -246,6 +246,7 @@ evgl_api_ext_init(void *getproc, const char *glueexts) typedef _getproc_fn (*fp_getproc)(const char *); fp_getproc gp = (fp_getproc)getproc; + int _curext_supported = 0; memset(_gl_ext_string, 0x00, MAX_EXTENSION_STRING_BUFFER); @@ -332,12 +333,13 @@ re->info->info.screen); // Extension HEADER ///////////////////////////////////////////////////////////////////////////////////////////////////// #define _EVASGL_EXT_BEGIN(name) \ - if (_gl_ext_support_##name != 0) strcat(_gl_ext_string, #name" "); + if (_gl_ext_support_##name != 0) { strcat(_gl_ext_string, #name" "); _curext_supported = 1; } \ + else _curext_supported = 0; #define _EVASGL_EXT_END() #define _EVASGL_EXT_CHECK_SUPPORT(name) #define _EVASGL_EXT_DISCARD_SUPPORT() -#define _EVASGL_EXT_DRVNAME(name) +#define _EVASGL_EXT_DRVNAME(name) if (_curext_supported) strcat(_gl_ext_string, #name" "); #define _EVASGL_EXT_FUNCTION_BEGIN(ret, name, param) #define _EVASGL_EXT_FUNCTION_END() #define _EVASGL_EXT_FUNCTION_DRVFUNC(name) |