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.
dev
Ander Conselvan de Oliveira 12 years ago committed by Kristian Høgsberg
parent 2bbb2b8bac
commit 2e7a3ab7cd
  1. 2
      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); 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"); weston_log("failed to create renderer output\n");
goto err_gbm; goto err_gbm;
} }

Loading…
Cancel
Save