summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/modules/evas/engines/gl_common/evas_gl_api_ext.c11
1 files changed, 9 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 5f1e045b2c..3ae078642c 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
@@ -540,7 +540,7 @@ _evgl_api_gles1_ext_init(void)
540#ifdef GL_GLES 540#ifdef GL_GLES
541 int _curext_supported = 0; 541 int _curext_supported = 0;
542 Evas_GL_API *gles1_funcs; 542 Evas_GL_API *gles1_funcs;
543 const char *gles1_exts; 543 const char *gles1_exts, *eglexts;
544 EVGL_Resource *rsc; 544 EVGL_Resource *rsc;
545 EGLint context_version; 545 EGLint context_version;
546 EGLDisplay dpy = EGLDISPLAY_GET(); 546 EGLDisplay dpy = EGLDISPLAY_GET();
@@ -588,6 +588,13 @@ _evgl_api_gles1_ext_init(void)
588 return EINA_FALSE; 588 return EINA_FALSE;
589 } 589 }
590 590
591 eglexts = eglQueryString(dpy, EGL_EXTENSIONS);
592 if (!eglexts)
593 {
594 ERR("eglQueryString(EGL_EXTENSIONS) returned NULL!");
595 eglexts = "";
596 }
597
591 ///////////////////////////////////////////////////////////////////////////////////////////////////// 598 /////////////////////////////////////////////////////////////////////////////////////////////////////
592 // Scanning supported extensions, sets the variables 599 // Scanning supported extensions, sets the variables
593 ///////////////////////////////////////////////////////////////////////////////////////////////////// 600 /////////////////////////////////////////////////////////////////////////////////////////////////////
@@ -605,7 +612,7 @@ _evgl_api_gles1_ext_init(void)
605 } 612 }
606 613
607#define _EVASGL_EXT_CHECK_SUPPORT(name) \ 614#define _EVASGL_EXT_CHECK_SUPPORT(name) \
608 (strstr(gles1_exts, name) != NULL) 615 ((strstr(gles1_exts, name) != NULL) || (strstr(eglexts, name) != NULL))
609 616
610#define _EVASGL_EXT_DISCARD_SUPPORT() \ 617#define _EVASGL_EXT_DISCARD_SUPPORT() \
611 *ext_support = 0; 618 *ext_support = 0;