Преглед на файлове

Update demo code in compositor effect tutorial

Raymond DiDonato преди 1 година
родител
ревизия
856701e560
променени са 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 what == NOTIFICATION_PREDELETE:
             if shader.is_valid():
             if shader.is_valid():
                 # Freeing our shader will also free any dependents such as the pipeline!
                 # 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
 Note that we do not use our mutex here even though we create our shader inside
 of our render thread.
 of our render thread.