From 645841d739c1eca5f39ea4f040f4a9d387c3102c Mon Sep 17 00:00:00 2001 From: Simon Fels Date: Wed, 18 Jul 2018 14:02:08 -0400 Subject: [PATCH] cmds: correctly query EGL for its features --- src/anbox/cmds/system_info.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/anbox/cmds/system_info.cpp b/src/anbox/cmds/system_info.cpp index a47f0b7..11ed763 100644 --- a/src/anbox/cmds/system_info.cpp +++ b/src/anbox/cmds/system_info.cpp @@ -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(str));