1
0
mirror of https://github.com/emilk/egui.git synced 2026-08-30 13:20:05 -04:00

Now is rendering on the new windows

This commit is contained in:
Konkitoman
2023-07-19 10:48:35 +03:00
parent 28d5c6e62c
commit 680a547a68

View File

@@ -715,8 +715,8 @@ mod glow_integration {
}
}
fn swap_buffers(&self) -> glutin::error::Result<()> {
self.windows[0]
fn swap_buffers(&self, window_index: usize) -> glutin::error::Result<()> {
self.windows[window_index]
.gl_surface
.as_ref()
.expect("failed to get surface to swap buffers")
@@ -1043,7 +1043,7 @@ mod glow_integration {
{
crate::profile_scope!("swap_buffers");
gl_window.swap_buffers().unwrap();
gl_window.swap_buffers(window_index).unwrap();
}
integration.post_present(window);