@ -3514,8 +3514,6 @@ gl_renderer_destroy(struct weston_compositor *ec)
eglTerminate ( gr - > egl_display ) ;
eglTerminate ( gr - > egl_display ) ;
eglReleaseThread ( ) ;
eglReleaseThread ( ) ;
wl_list_remove ( & gr - > output_destroy_listener . link ) ;
wl_array_release ( & gr - > vertices ) ;
wl_array_release ( & gr - > vertices ) ;
wl_array_release ( & gr - > vtxcnt ) ;
wl_array_release ( & gr - > vtxcnt ) ;
@ -3528,20 +3526,6 @@ gl_renderer_destroy(struct weston_compositor *ec)
free ( gr ) ;
free ( gr ) ;
}
}
static void
output_handle_destroy ( struct wl_listener * listener , void * data )
{
struct gl_renderer * gr ;
struct weston_output * output = data ;
gr = container_of ( listener , struct gl_renderer ,
output_destroy_listener ) ;
if ( wl_list_empty ( & output - > compositor - > output_list ) )
eglMakeCurrent ( gr - > egl_display , gr - > dummy_surface ,
gr - > dummy_surface , gr - > egl_context ) ;
}
static int
static int
gl_renderer_create_pbuffer_surface ( struct gl_renderer * gr ) {
gl_renderer_create_pbuffer_surface ( struct gl_renderer * gr ) {
EGLConfig pbuffer_config ;
EGLConfig pbuffer_config ;
@ -3869,10 +3853,6 @@ gl_renderer_setup(struct weston_compositor *ec, EGLSurface egl_surface)
fan_debug_repaint_binding ,
fan_debug_repaint_binding ,
ec ) ;
ec ) ;
gr - > output_destroy_listener . notify = output_handle_destroy ;
wl_signal_add ( & ec - > output_destroyed_signal ,
& gr - > output_destroy_listener ) ;
weston_log ( " GL ES %d.%d - renderer features: \n " ,
weston_log ( " GL ES %d.%d - renderer features: \n " ,
gr_gl_version_major ( gr - > gl_version ) ,
gr_gl_version_major ( gr - > gl_version ) ,
gr_gl_version_minor ( gr - > gl_version ) ) ;
gr_gl_version_minor ( gr - > gl_version ) ) ;