mirror of
https://github.com/slint-ui/slint.git
synced 2025-09-30 22:01:13 +00:00
Track the issue of keeping the GL context current
This commit is contained in:
parent
3d1df6178e
commit
f55c4e50f0
2 changed files with 1 additions and 2 deletions
|
@ -145,6 +145,7 @@ fn main() {
|
|||
}
|
||||
|
||||
let size = windowed_context.window().inner_size();
|
||||
// TODO #4: ensure GO context is current -- see if this can be done within the runtime
|
||||
render_tree.render(&mut renderer, size.width, size.height, root);
|
||||
windowed_context.swap_buffers().unwrap();
|
||||
});
|
||||
|
|
|
@ -376,8 +376,6 @@ impl GraphicsBackend for GLRenderer {
|
|||
}
|
||||
|
||||
fn new_frame(&mut self, width: u32, height: u32, clear_color: &Color) -> GLFrame {
|
||||
// ### FIXME: make_current
|
||||
|
||||
unsafe {
|
||||
self.context.viewport(0, 0, width as i32, height as i32);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue