@ -397,16 +397,16 @@ static void gles2_destroy(struct wlr_renderer *wlr_renderer) {
wlr_egl_make_current ( renderer - > egl ) ;
wlr_egl_make_current ( renderer - > egl ) ;
struct wlr_gles2_buffer * buffer , * buffer_tmp ;
wl_list_for_each_safe ( buffer , buffer_tmp , & renderer - > buffers , link ) {
destroy_buffer ( buffer ) ;
}
struct wlr_gles2_texture * tex , * tex_tmp ;
struct wlr_gles2_texture * tex , * tex_tmp ;
wl_list_for_each_safe ( tex , tex_tmp , & renderer - > textures , link ) {
wl_list_for_each_safe ( tex , tex_tmp , & renderer - > textures , link ) {
gles2_texture_destroy ( tex ) ;
gles2_texture_destroy ( tex ) ;
}
}
struct wlr_gles2_buffer * buffer , * buffer_tmp ;
wl_list_for_each_safe ( buffer , buffer_tmp , & renderer - > buffers , link ) {
destroy_buffer ( buffer ) ;
}
push_gles2_debug ( renderer ) ;
push_gles2_debug ( renderer ) ;
glDeleteProgram ( renderer - > shaders . quad . program ) ;
glDeleteProgram ( renderer - > shaders . quad . program ) ;
glDeleteProgram ( renderer - > shaders . tex_rgba . program ) ;
glDeleteProgram ( renderer - > shaders . tex_rgba . program ) ;