Skip to content

Commit

Permalink
EGL Debug Compatibilty
Browse files Browse the repository at this point in the history
-change to support Renesas m3ulcb

Signed-off-by: Joel Winarske <[email protected]>
  • Loading branch information
jwinarske committed Oct 25, 2023
1 parent b22c0ed commit 20a68d0
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions shell/backend/egl.cc
Original file line number Diff line number Diff line change
Expand Up @@ -122,32 +122,28 @@ Egl::Egl(void* native_display, int buffer_size, bool debug)
SPDLOG_DEBUG("EGL Vendor: {}", eglQueryString(m_dpy, EGL_VENDOR));
SPDLOG_DEBUG("EGL Extensions: {}", eglQueryString(m_dpy, EGL_EXTENSIONS));

auto glGetString_ = reinterpret_cast<PFNGLGETSTRINGPROC>(
GlProcessResolver::GetInstance().process_resolver("glGetString"));
assert(glGetString_);

std::stringstream ss;
ss << glGetString_(GL_VENDOR);
ss << glGetString(GL_VENDOR);
SPDLOG_DEBUG("GL Vendor: {}", ss.str().c_str());
ss.clear();
ss.str("");

ss << glGetString_(GL_RENDERER);
ss << glGetString(GL_RENDERER);
SPDLOG_DEBUG("GL Renderer: {}", ss.str().c_str());
ss.clear();
ss.str("");

ss << glGetString_(GL_VERSION);
ss << glGetString(GL_VERSION);
SPDLOG_DEBUG("GL Version: {}", ss.str().c_str());
ss.clear();
ss.str("");

ss << glGetString_(GL_SHADING_LANGUAGE_VERSION);
ss << glGetString(GL_SHADING_LANGUAGE_VERSION);
SPDLOG_DEBUG("GL Shading Language Version: {}", ss.str().c_str());
ss.clear();
ss.str("");

ss << glGetString_(GL_EXTENSIONS);
ss << glGetString(GL_EXTENSIONS);
SPDLOG_DEBUG("GL Extensions: {}", ss.str().c_str());
ss.clear();
ss.str("");
Expand Down

0 comments on commit 20a68d0

Please sign in to comment.