diff --git a/examples/effects/top_down_lights.c b/examples/effects/top_down_lights.c index e52aad0b6..3c36ae263 100644 --- a/examples/effects/top_down_lights.c +++ b/examples/effects/top_down_lights.c @@ -360,6 +360,13 @@ int main(void) // De-Initialization //-------------------------------------------------------------------------------------- UnloadTexture(backgroundTexture); + UnloadRenderTexture(lightMask); + for (int i = 0; i < MAX_LIGHTS; i++) + { + if (Lights[i].Active) + UnloadRenderTexture(Lights[i].Mask); + } + CloseWindow(); // Close window and OpenGL context //--------------------------------------------------------------------------------------