cmds: correctly query EGL for its features
This commit is contained in:
parent
766bff9ddc
commit
645841d739
1 changed files with 2 additions and 2 deletions
|
|
@ -175,8 +175,8 @@ class SystemInformation {
|
|||
if (display != EGL_NO_DISPLAY) {
|
||||
s_egl.eglInitialize(display, nullptr, nullptr);
|
||||
|
||||
auto egl_safe_get_string = [](EGLint item) {
|
||||
auto str = s_gles2.glGetString(item);
|
||||
auto egl_safe_get_string = [display](EGLint item) {
|
||||
auto str = s_egl.eglQueryString(display, item);
|
||||
if (!str)
|
||||
return std::string("n/a");
|
||||
return std::string(reinterpret_cast<const char*>(str));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue