Add a forgotten conditional in simple_shadow.nim

This commit is contained in:
Alberto Torres 2024-09-21 02:27:10 +02:00
parent 29e4735626
commit 6794b35978

View file

@ -107,6 +107,7 @@ proc newSimpleShadowManager*(light: Light;
method destroy*(self: SimpleShadowManager) {.locks:"unknown".} =
if self.material != nil:
self.material.destroy()
when defined(myouDebugShadows):
debug_mesh.destroy()
when defined(myouDebugShadows):