diff --git a/gfx/shader_cg.c b/gfx/shader_cg.c index c2d0858fdf..6a357645cf 100644 --- a/gfx/shader_cg.c +++ b/gfx/shader_cg.c @@ -100,6 +100,7 @@ void gl_cg_deinit(void) { if (cg_active) cgDestroyContext(cgCtx); + cg_active = false; } bool gl_cg_init(const char *path)