1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-17 14:11:06 +00:00

Fix drawing of viewports without swapping buffers

This commit is contained in:
Pedro J. Estébanez
2023-08-23 18:45:11 +02:00
parent a2f90d565a
commit 77d8372285
4 changed files with 13 additions and 9 deletions

View File

@@ -103,8 +103,9 @@ void RendererCompositorRD::begin_frame(double frame_step) {
}
void RendererCompositorRD::end_frame(bool p_swap_buffers) {
// TODO: Likely pass a bool to swap buffers to avoid display?
RD::get_singleton()->swap_buffers();
if (p_swap_buffers) {
RD::get_singleton()->swap_buffers();
}
}
void RendererCompositorRD::initialize() {