summaryrefslogtreecommitdiff
path: root/src/gl-renderer.c
diff options
context:
space:
mode:
authorPekka Paalanen <ppaalanen@gmail.com>2013-01-10 16:50:42 +0200
committerKristian Høgsberg <krh@bitplanet.net>2013-01-10 16:06:06 -0500
commitfe4eacf6ad9110099285cfa8842957588d4b7d9d (patch)
tree24fdc53ed751792e26274fa24d983a6054d343d8 /src/gl-renderer.c
parentf82a80675c0c8d33b3abda9119c7e0d41bbc6964 (diff)
downloadweston-fe4eacf6ad9110099285cfa8842957588d4b7d9d.tar.gz
weston-fe4eacf6ad9110099285cfa8842957588d4b7d9d.tar.bz2
weston-fe4eacf6ad9110099285cfa8842957588d4b7d9d.zip
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>
Diffstat (limited to 'src/gl-renderer.c')
-rw-r--r--src/gl-renderer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gl-renderer.c b/src/gl-renderer.c
index ee2763ab..a5dc2f34 100644
--- a/src/gl-renderer.c
+++ b/src/gl-renderer.c
@@ -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",