[PATCH weston] gl: fix read-back format reporting in the log

Kristian Høgsberg hoegsberg at gmail.com
Thu Jan 10 13:06:18 PST 2013


On Thu, Jan 10, 2013 at 04:50:42PM +0200, Pekka Paalanen wrote:
> 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.

Thanks, applied.

> Signed-off-by: Pekka Paalanen <ppaalanen at gmail.com>
> ---
>  src/gl-renderer.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/src/gl-renderer.c b/src/gl-renderer.c
> index ee2763a..a5dc2f3 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",
> -- 
> 1.7.8.6
> 


More information about the wayland-devel mailing list