mirror of
https://github.com/godotengine/godot-demo-projects.git
synced 2025-12-31 09:49:06 +03:00
Fix VRAM leak in compositor effect demo (#1115)
This commit is contained in:
@@ -19,7 +19,7 @@ func _notification(what: int) -> void:
|
||||
if what == NOTIFICATION_PREDELETE:
|
||||
if shader.is_valid():
|
||||
# Freeing our shader will also free any dependents such as the pipeline!
|
||||
RenderingServer.free_rid(shader)
|
||||
rd.free_rid(shader)
|
||||
|
||||
|
||||
#region Code in this region runs on the rendering thread.
|
||||
|
||||
@@ -58,7 +58,7 @@ func _notification(what: int) -> void:
|
||||
if what == NOTIFICATION_PREDELETE:
|
||||
if shader.is_valid():
|
||||
# Freeing our shader will also free any dependents such as the pipeline!
|
||||
RenderingServer.free_rid(shader)
|
||||
rd.free_rid(shader)
|
||||
|
||||
|
||||
#region Code in this region runs on the rendering thread.
|
||||
|
||||
Reference in New Issue
Block a user