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,7 +107,8 @@ proc newSimpleShadowManager*(light: Light;
method destroy*(self: SimpleShadowManager) {.locks:"unknown".} =
if self.material != nil:
self.material.destroy()
debug_mesh.destroy()
when defined(myouDebugShadows):
debug_mesh.destroy()
when defined(myouDebugShadows):
proc show_mat(mat: Mat4) =