mirror of
https://gitlab.freedesktop.org/wayland/weston.git
synced 2026-05-08 03:08:05 +02:00
gl: fix read-back format reporting in the log
weston_compositor::read_format is in Pixman values now, so comparing to a GL value does not work. Compare to the right value. This fix affects only the log output of the GL renderer. Signed-off-by: Pekka Paalanen <ppaalanen@gmail.com>
This commit is contained in:
parent
f82a80675c
commit
fe4eacf6ad
1 changed files with 1 additions and 1 deletions
|
|
@ -1937,7 +1937,7 @@ gl_renderer_setup(struct weston_compositor *ec, EGLSurface egl_surface)
|
|||
|
||||
weston_log("GL ES 2 renderer features:\n");
|
||||
weston_log_continue(STAMP_SPACE "read-back format: %s\n",
|
||||
ec->read_format == GL_BGRA_EXT ? "BGRA" : "RGBA");
|
||||
ec->read_format == PIXMAN_a8r8g8b8 ? "BGRA" : "RGBA");
|
||||
weston_log_continue(STAMP_SPACE "wl_shm sub-image to texture: %s\n",
|
||||
gr->has_unpack_subimage ? "yes" : "no");
|
||||
weston_log_continue(STAMP_SPACE "EGL Wayland extension: %s\n",
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue