evas_gl: remove GL_VERSION wrapper 40/181440/1
authorDaekwang Ryu <dkdk.ryu@samsung.com>
Fri, 11 May 2018 09:51:59 +0000 (18:51 +0900)
committerDaekwang Ryu <dkdk.ryu@samsung.com>
Thu, 14 Jun 2018 02:26:55 +0000 (11:26 +0900)
because some drivers return a context of later version not specified version.

Change-Id: I4fc4567ccdefd63f422812d1f7461d13e1e547b3

src/modules/evas/engines/gl_common/evas_gl_api.c

index 84bd943..6c3a44a 100755 (executable)
@@ -1471,7 +1471,7 @@ _evgl_glGetString(GLenum name)
 {
    static char _version[128] = {0};
    static char _glsl[128] = {0};
-   const char *ret, *version_extra;
+   const char *ret;
    EVGL_Resource *rsc;
    EVGL_Context *ctx;
 
@@ -1521,19 +1521,6 @@ _evgl_glGetString(GLenum name)
         return (const GLubyte *) _glsl;
 #endif
 
-      case GL_VERSION:
-        ret = (const char *) EVGL_TH(glGetString, GL_VERSION);
-        if (!ret) return NULL;
-#ifdef GL_GLES
-        version_extra = ret + 10;
-#else
-        version_extra = ret;
-#endif
-        snprintf(_version, sizeof(_version), "OpenGL ES %d.%d Evas GL (%s)",
-                 (int) ctx->version, ctx->version_minor, version_extra);
-        _version[sizeof(_version) - 1] = '\0';
-        return (const GLubyte *) _version;
-
       case GL_EXTENSIONS:
         // Passing the version -  GLESv2/GLESv3.
         return (GLubyte *) evgl_api_ext_string_get(EINA_TRUE, rsc->current_ctx->version);