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>
Abhijit Potnis 12 years ago committed by Kristian Høgsberg
parent c1e481efb1
commit f9763bc2ef
  1. 4
      src/compositor-android.c

@ -476,11 +476,11 @@ android_compositor_create(struct wl_display *display, int argc, char *argv[],
if (android_init_egl(compositor, output) < 0) if (android_init_egl(compositor, output) < 0)
goto err_output; goto err_output;
android_compositor_add_output(compositor, output);
if (gles2_renderer_init(&compositor->base) < 0) if (gles2_renderer_init(&compositor->base) < 0)
goto err_egl; goto err_egl;
android_compositor_add_output(compositor, output);
compositor->seat = android_seat_create(compositor); compositor->seat = android_seat_create(compositor);
if (!compositor->seat) if (!compositor->seat)
goto err_egl; goto err_egl;

Loading…
Cancel
Save