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:
parent
79b21e96ad
commit
96b7cb66df
6 changed files with 26 additions and 32 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue