fix: delete all shaders on fx_renderer create failure
This commit is contained in:
parent
5e066dfc3c
commit
8339a07f45
|
@ -248,6 +248,9 @@ struct fx_renderer *fx_renderer_create(struct wlr_egl *egl) {
|
|||
|
||||
error:
|
||||
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.tex_rgba.program);
|
||||
glDeleteProgram(renderer->shaders.tex_rgbx.program);
|
||||
|
|
Loading…
Reference in a new issue