Permalink
Browse files

Merge pull request #11335 from AreaScout/eglinfo

Add: EGL info for GLES on Linux
  • Loading branch information...
hrydgard committed Aug 30, 2018
2 parents c413da7 + 45753d8 commit 19dd28582ff679ccacad140db5968ea390b7a003
Showing with 9 additions and 0 deletions.
  1. +9 −0 ext/native/gfx_es2/gpu_features.cpp
@@ -418,6 +418,15 @@ void CheckGLExtensions() {
} else {
g_all_egl_extensions = "";
}
#elif defined(USING_GLES2) && defined(__linux__)
const char *eglString = eglQueryString(NULL, EGL_EXTENSIONS);
if (eglString) {
g_all_egl_extensions = std::string(eglString);
g_all_egl_extensions.append(" ");
g_all_egl_extensions.append(eglQueryString(eglGetCurrentDisplay(), EGL_EXTENSIONS));
} else {
g_all_egl_extensions = "";
}
#endif
glGetIntegerv(GL_MAX_VERTEX_TEXTURE_IMAGE_UNITS, &gl_extensions.maxVertexTextureUnits);

0 comments on commit 19dd285

Please sign in to comment.