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>
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;