Add a forgotten conditional in simple_shadow.nim
This commit is contained in:
parent
29e4735626
commit
6794b35978
|
@ -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):
|
||||
|
|
Loading…
Reference in a new issue