summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJean-Philippe Andre <jp.andre@samsung.com>2014-10-24 19:52:51 +0900
committerJean-Philippe Andre <jp.andre@samsung.com>2014-11-14 10:42:59 +0900
commitce3146b26250bf0fe8b30b3810eb01d2fc514bfc (patch)
tree18bda8658ccf27d1d7df81e57f65b30906dd93fe
parente18886a2a3c82adce0477f6a689c26ae62359502 (diff)
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.c6
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)
246 typedef _getproc_fn (*fp_getproc)(const char *); 246 typedef _getproc_fn (*fp_getproc)(const char *);
247 247
248 fp_getproc gp = (fp_getproc)getproc; 248 fp_getproc gp = (fp_getproc)getproc;
249 int _curext_supported = 0;
249 250
250 memset(_gl_ext_string, 0x00, MAX_EXTENSION_STRING_BUFFER); 251 memset(_gl_ext_string, 0x00, MAX_EXTENSION_STRING_BUFFER);
251 252
@@ -332,12 +333,13 @@ re->info->info.screen);
332 // Extension HEADER 333 // Extension HEADER
333 ///////////////////////////////////////////////////////////////////////////////////////////////////// 334 /////////////////////////////////////////////////////////////////////////////////////////////////////
334#define _EVASGL_EXT_BEGIN(name) \ 335#define _EVASGL_EXT_BEGIN(name) \
335 if (_gl_ext_support_##name != 0) strcat(_gl_ext_string, #name" "); 336 if (_gl_ext_support_##name != 0) { strcat(_gl_ext_string, #name" "); _curext_supported = 1; } \
337 else _curext_supported = 0;
336 338
337#define _EVASGL_EXT_END() 339#define _EVASGL_EXT_END()
338#define _EVASGL_EXT_CHECK_SUPPORT(name) 340#define _EVASGL_EXT_CHECK_SUPPORT(name)
339#define _EVASGL_EXT_DISCARD_SUPPORT() 341#define _EVASGL_EXT_DISCARD_SUPPORT()
340#define _EVASGL_EXT_DRVNAME(name) 342#define _EVASGL_EXT_DRVNAME(name) if (_curext_supported) strcat(_gl_ext_string, #name" ");
341#define _EVASGL_EXT_FUNCTION_BEGIN(ret, name, param) 343#define _EVASGL_EXT_FUNCTION_BEGIN(ret, name, param)
342#define _EVASGL_EXT_FUNCTION_END() 344#define _EVASGL_EXT_FUNCTION_END()
343#define _EVASGL_EXT_FUNCTION_DRVFUNC(name) 345#define _EVASGL_EXT_FUNCTION_DRVFUNC(name)