From 2e7a3ab7cd5e8339a5a269e7101ac180b174ae30 Mon Sep 17 00:00:00 2001 From: Ander Conselvan de Oliveira Date: Fri, 14 Dec 2012 13:37:27 -0200 Subject: [PATCH] compositor-drm: Fix a return value check in drm_output_switch_mode() gl_rederer_output_create() returns 0 on success, but drm compositor would consider this a failure. --- src/compositor-drm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/compositor-drm.c b/src/compositor-drm.c index 3f2cd0c6..22a3ac82 100644 --- a/src/compositor-drm.c +++ b/src/compositor-drm.c @@ -1003,7 +1003,7 @@ drm_output_switch_mode(struct weston_output *output_base, struct weston_mode *mo gl_renderer_output_destroy(&output->base); - if (!gl_renderer_output_create(&output->base, surface)) { + if (gl_renderer_output_create(&output->base, surface) < 0) { weston_log("failed to create renderer output\n"); goto err_gbm; }