瀏覽代碼

Merge pull request #9970 from RGDTAB/patch-1

Update demo code in compositor effect tutorial
Matthew 11 月之前
父節點
當前提交
a47a105b60
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      tutorials/rendering/compositor.rst

+ 1 - 1
tutorials/rendering/compositor.rst

@@ -152,7 +152,7 @@ We also need to clean up after ourselves, for this we react to the
         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)
 
 Note that we do not use our mutex here even though we create our shader inside
 of our render thread.