summaryrefslogtreecommitdiff
path: root/src/modules/evas/engines/gl_common/evas_gl_api_ext.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/evas/engines/gl_common/evas_gl_api_ext.c')
-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)