fix: delete all shaders on fx_renderer create failure

This commit is contained in:
Will McKinnon 2022-11-18 20:00:52 -05:00
parent 5e066dfc3c
commit 8339a07f45

View file

@ -248,6 +248,9 @@ struct fx_renderer *fx_renderer_create(struct wlr_egl *egl) {
error: error:
glDeleteProgram(renderer->shaders.quad.program); glDeleteProgram(renderer->shaders.quad.program);
glDeleteProgram(renderer->shaders.rounded_quad.program);
glDeleteProgram(renderer->shaders.rounded_tl_quad.program);
glDeleteProgram(renderer->shaders.rounded_tr_quad.program);
glDeleteProgram(renderer->shaders.corner.program); glDeleteProgram(renderer->shaders.corner.program);
glDeleteProgram(renderer->shaders.tex_rgba.program); glDeleteProgram(renderer->shaders.tex_rgba.program);
glDeleteProgram(renderer->shaders.tex_rgbx.program); glDeleteProgram(renderer->shaders.tex_rgbx.program);