compositor-android: Add output before gles2_renderer_init()
Calling android_compositor_add_output() before gles2_renderer_init(), or else in gles-renderer_init will have an invalid EGLSurface. Signed-off-by: Abhijit Potnis <abhijitpotnis@gmail.com> Reviewed-by: Pekka Paalanen <ppaalanen@gmail.com>
This commit is contained in:
parent
c1e481efb1
commit
f9763bc2ef
@ -476,11 +476,11 @@ android_compositor_create(struct wl_display *display, int argc, char *argv[],
|
||||
if (android_init_egl(compositor, output) < 0)
|
||||
goto err_output;
|
||||
|
||||
android_compositor_add_output(compositor, output);
|
||||
|
||||
if (gles2_renderer_init(&compositor->base) < 0)
|
||||
goto err_egl;
|
||||
|
||||
android_compositor_add_output(compositor, output);
|
||||
|
||||
compositor->seat = android_seat_create(compositor);
|
||||
if (!compositor->seat)
|
||||
goto err_egl;
|
||||
|
Loading…
Reference in New Issue
Block a user