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.
This commit is contained in:
parent
2bbb2b8bac
commit
2e7a3ab7cd
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user