1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-04 12:00:25 +00:00

Fix multiwindow support in GLES3 for X11, Windows, and MacOS.

Instead of updating all viewports, then blitting all viewports
to the backbuffer, then swapping all buffers, we run through
all viewports and render, blit, and swap backbuffer before
going to the next viewport.
This commit is contained in:
clayjohn
2022-09-12 14:57:11 -07:00
parent 79b21e96ad
commit 96b7cb66df
6 changed files with 26 additions and 32 deletions

View File

@@ -91,7 +91,10 @@ void RenderingServerDefault::_draw(bool p_swap_buffers, double frame_step) {
RSG::viewport->draw_viewports();
RSG::canvas_render->update();
RSG::rasterizer->end_frame(p_swap_buffers);
if (OS::get_singleton()->get_current_rendering_driver_name() != "opengl3") {
// Already called for gl_compatibility renderer.
RSG::rasterizer->end_frame(p_swap_buffers);
}
XRServer *xr_server = XRServer::get_singleton();
if (xr_server != nullptr) {