compositor-x11: fix segfault when use_pixman is true
Signed-off-by: Ryo Munakata <ryomnktml@gmail.com> Reviewed-by: Daniel Stone <daniels@collabora.com>
This commit is contained in:
committed by
Daniel Stone
parent
04bd040258
commit
e6dec90e29
@@ -917,8 +917,9 @@ x11_output_enable(struct weston_output *base)
|
|||||||
weston_log("Failed to create pixman renderer for output\n");
|
weston_log("Failed to create pixman renderer for output\n");
|
||||||
x11_output_deinit_shm(b, output);
|
x11_output_deinit_shm(b, output);
|
||||||
goto err;
|
goto err;
|
||||||
output->base.repaint = x11_output_repaint_shm;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
output->base.repaint = x11_output_repaint_shm;
|
||||||
} else {
|
} else {
|
||||||
/* eglCreatePlatformWindowSurfaceEXT takes a Window*
|
/* eglCreatePlatformWindowSurfaceEXT takes a Window*
|
||||||
* but eglCreateWindowSurface takes a Window. */
|
* but eglCreateWindowSurface takes a Window. */
|
||||||
|
|||||||
Reference in New Issue
Block a user