|
@@ -16,7 +16,7 @@ func _ready():
|
|
|
viewport_sprite = get_node("Viewport_Sprite")
|
|
|
|
|
|
# Assign the sprite's texture to the viewport texture
|
|
|
- viewport.clear()
|
|
|
+ viewport.set_clear_mode(Viewport.CLEAR_MODE_ONLY_NEXT_FRAME)
|
|
|
# Let two frames pass to make sure the screen was captured
|
|
|
yield(get_tree(), "idle_frame")
|
|
|
yield(get_tree(), "idle_frame")
|