mirror of
https://gitlab.freedesktop.org/wayland/weston.git
synced 2026-01-23 18:40:24 +01:00
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
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Reference in a new issue