Skip to content

Commit

Permalink
Ensure freeing of resources
Browse files Browse the repository at this point in the history
  • Loading branch information
FailSpy committed Mar 15, 2024
1 parent 68d1e06 commit f86c0f4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions COGITO/Assets/Shader/ShaderPrecompiler.gd
Original file line number Diff line number Diff line change
Expand Up @@ -42,4 +42,7 @@ func _on_visible_on_screen_notifier_3d_screen_exited():

func _on_visible_on_screen_notifier_3d_tree_exiting():
if shader_compiler_scene == self:
# unexpected exit?
queued = false
queue_free()
shader_compiler_scene = null

0 comments on commit f86c0f4

Please sign in to comment.