mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-11-30 00:15:58 +01:00
render/gles2: print GL_RENDERER
This is often the name of the GPU and can help debugging graphics issues.
This commit is contained in:
parent
947d5ff481
commit
107a1789ea
1 changed files with 1 additions and 0 deletions
|
@ -545,6 +545,7 @@ struct wlr_renderer *wlr_gles2_renderer_create(struct wlr_egl *egl) {
|
||||||
renderer->exts_str = (const char *)glGetString(GL_EXTENSIONS);
|
renderer->exts_str = (const char *)glGetString(GL_EXTENSIONS);
|
||||||
wlr_log(WLR_INFO, "Using %s", glGetString(GL_VERSION));
|
wlr_log(WLR_INFO, "Using %s", glGetString(GL_VERSION));
|
||||||
wlr_log(WLR_INFO, "GL vendor: %s", glGetString(GL_VENDOR));
|
wlr_log(WLR_INFO, "GL vendor: %s", glGetString(GL_VENDOR));
|
||||||
|
wlr_log(WLR_INFO, "GL renderer: %s", glGetString(GL_RENDERER));
|
||||||
wlr_log(WLR_INFO, "Supported GLES2 extensions: %s", renderer->exts_str);
|
wlr_log(WLR_INFO, "Supported GLES2 extensions: %s", renderer->exts_str);
|
||||||
|
|
||||||
if (!check_gl_ext(renderer->exts_str, "GL_EXT_texture_format_BGRA8888")) {
|
if (!check_gl_ext(renderer->exts_str, "GL_EXT_texture_format_BGRA8888")) {
|
||||||
|
|
Loading…
Reference in a new issue