Skip to content

Commit

Permalink
Update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
remcokranenburg committed Nov 18, 2023
1 parent 5815bd3 commit 96a6489
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
6 changes: 3 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ keywords = ["graphics", "gtk", "opengl", "glium", "gui"]
categories = ["api-bindings", "graphics", "gui", "rendering", "rendering::graphics-api"]

[dependencies]
glib = "^0.15.0"
glium = "^0.31.0"
glib = "^0.18.0"
glium = "^0.33.0"
gl_loader = "^0.1.2"
gtk4 = "^0.4.0"
gtk4 = "^0.6.0"
2 changes: 1 addition & 1 deletion examples/triangle.rs
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ fn main() {
let frame_time = Duration::new(0, 1_000_000_000 / 60);
glib::source::timeout_add_local(frame_time, move || {
glarea.queue_draw();
glib::source::Continue(true)
glib::ControlFlow::Continue
});
});

Expand Down
4 changes: 4 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@ unsafe impl Backend for GLAreaBackend {
((allocation.width() * scale) as u32, (allocation.height() * scale) as u32)
}

fn resize(&self, _: (u32, u32)) {
// do nothing
}

fn is_current(&self) -> bool {
// GTK makes OpenGL current itself on each "render" signal
true
Expand Down

0 comments on commit 96a6489

Please sign in to comment.