Skip to content
Permalink
Browse files

Add: EGL info for GLES on Linux

  • Loading branch information...
AreaScout committed Aug 30, 2018
1 parent 22a536f commit 45753d87de3546a8b7118cdfce9e3fbff6b2041d
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 45753d8

Please sign in to comment.
You can’t perform that action at this time.