Skip to content

Commit bad8f53

Browse files
committed
Sync final frame after finalizing RD to ensure that nothing is in use on the GPU when we free the RD
1 parent 5950fca commit bad8f53

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

servers/rendering/rendering_device.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6591,6 +6591,8 @@ void RenderingDevice::_flush_and_stall_for_all_frames(bool p_begin_frame) {
65916591

65926592
if (p_begin_frame) {
65936593
_begin_frame();
6594+
} else {
6595+
_stall_for_frame(frame);
65946596
}
65956597
}
65966598

0 commit comments

Comments
 (0)