Skip to content

Commit

Permalink
deps: update glium
Browse files Browse the repository at this point in the history
  • Loading branch information
wez committed Feb 6, 2024
1 parent 5d190c2 commit 36ff6d5
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 4 deletions.
6 changes: 3 additions & 3 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion window/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ raw-window-handle = "0.5"
resize = "0.5"
serde = {version="1.0", features = ["rc", "derive"]}
tiny-skia = "0.11"
glium = { version = "0.31", default-features = false }
glium = { version = "0.34", default-features = false }
url = "2"
wezterm-bidi = { path = "../bidi" }
wezterm-color-types = { path = "../color-types" }
Expand Down
4 changes: 4 additions & 0 deletions window/src/egl.rs
Original file line number Diff line number Diff line change
Expand Up @@ -658,6 +658,10 @@ impl GlState {
}

unsafe impl glium::backend::Backend for GlState {
fn resize(&self, _: (u32, u32)) {
todo!()
}

fn swap_buffers(&self) -> Result<(), glium::SwapBuffersError> {
let res = unsafe {
self.connection
Expand Down
4 changes: 4 additions & 0 deletions window/src/os/macos/window.rs
Original file line number Diff line number Diff line change
Expand Up @@ -313,6 +313,10 @@ mod cglbits {
}

unsafe impl glium::backend::Backend for GlState {
fn resize(&self, _: (u32, u32)) {
todo!()
}

fn swap_buffers(&self) -> Result<(), glium::SwapBuffersError> {
unsafe {
let pool = NSAutoreleasePool::new(nil);
Expand Down
4 changes: 4 additions & 0 deletions window/src/os/windows/wgl.rs
Original file line number Diff line number Diff line change
Expand Up @@ -402,6 +402,10 @@ impl Drop for GlState {
}

unsafe impl glium::backend::Backend for GlState {
fn resize(&self, _: (u32, u32)) {
todo!()
}

fn swap_buffers(&self) -> Result<(), glium::SwapBuffersError> {
unsafe {
SwapBuffers(self.hdc);
Expand Down

0 comments on commit 36ff6d5

Please sign in to comment.