Add a forgotten conditional in simple_shadow.nim
This commit is contained in:
parent
29e4735626
commit
6794b35978
|
@ -107,7 +107,8 @@ proc newSimpleShadowManager*(light: Light;
|
||||||
method destroy*(self: SimpleShadowManager) {.locks:"unknown".} =
|
method destroy*(self: SimpleShadowManager) {.locks:"unknown".} =
|
||||||
if self.material != nil:
|
if self.material != nil:
|
||||||
self.material.destroy()
|
self.material.destroy()
|
||||||
debug_mesh.destroy()
|
when defined(myouDebugShadows):
|
||||||
|
debug_mesh.destroy()
|
||||||
|
|
||||||
when defined(myouDebugShadows):
|
when defined(myouDebugShadows):
|
||||||
proc show_mat(mat: Mat4) =
|
proc show_mat(mat: Mat4) =
|
||||||
|
|
Loading…
Reference in a new issue