Evas GL: Return supported extensions list in glGetString()

This commit is contained in:
Jean-Philippe Andre 2014-11-27 17:03:04 +09:00
parent cda135f112
commit af1b679e6c
1 changed files with 5 additions and 6 deletions

View File

@ -559,9 +559,9 @@ _evgl_glGetString(GLenum name)
* GLES 3 support is not exposed because apps can't use GLES 3 core * GLES 3 support is not exposed because apps can't use GLES 3 core
* functions yet. * functions yet.
* *
* EXTENSIONS: This should return the list of GL extensions supported by Evas GL * EXTENSIONS: This should return only the list of GL extensions supported
* --> FIXME: Unfortunately the whitelist does not contain enough extensions * by Evas GL. This means as many extensions as possible should be
* especially for desktop GL and needs updating as OpenGL evolves. * added to the whitelist.
*/ */
/* /*
@ -602,9 +602,8 @@ _evgl_glGetString(GLenum name)
} }
return ret; return ret;
case GL_EXTENSIONS: case GL_EXTENSIONS:
// return (GLubyte *) evgl_api_ext_string_get return (GLubyte *) evgl_api_ext_string_get
// (EINA_TRUE, (rsc->current_ctx->version == EVAS_GL_GLES_1_X)); (EINA_TRUE, (rsc->current_ctx->version == EVAS_GL_GLES_1_X));
break;
default: default:
// GL_INVALID_ENUM is generated if name is not an accepted value. // GL_INVALID_ENUM is generated if name is not an accepted value.
WRN("Unknown string requested: %x", (unsigned int) name); WRN("Unknown string requested: %x", (unsigned int) name);