[nostalgia/core/userland] Delete GL shaders when done

This commit is contained in:
2021-03-18 19:43:08 -05:00
parent ff0a959793
commit 9860fec00e
2 changed files with 22 additions and 33 deletions
@@ -149,6 +149,8 @@ ox::Error init(Context *ctx) {
ox::Error shutdown(Context *ctx) {
const auto id = ctx->rendererData<GlImplData>();
glDeleteProgram(id->bgShader);
id->bgShader = 0;
for (auto &bg : id->backgrounds) {
destroy(bg);
}