From 43c84288332cace364bc62f6d2d7fd85d73bbbac Mon Sep 17 00:00:00 2001 From: sagudev <16504129+sagudev@users.noreply.github.com> Date: Wed, 16 Oct 2024 19:49:53 +0200 Subject: [PATCH 1/2] use generic clear_depth Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com> --- Cargo.toml | 3 ++- src/chains.rs | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 44cccef8..ef5cd7ae 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -37,7 +37,8 @@ euclid = "0.22" fnv = { version = "1.0", optional = true } libc = "0.2" log = "0.4" -glow = { version = "0.14.2", optional = true } +#glow = { version = "0.14.2", optional = true } +glow = { git = "https://github.com/grovesNL/glow", optional = true } osmesa-sys = { version = "0.1", optional = true } rwh_05 = { package = "raw-window-handle", version = "0.5.2", features = ["std"], optional = true } rwh_06 = { package = "raw-window-handle", version = "0.6.2", features = ["std"], optional = true } diff --git a/src/chains.rs b/src/chains.rs index 57173c2b..5a8309ff 100644 --- a/src/chains.rs +++ b/src/chains.rs @@ -402,7 +402,7 @@ impl SwapChainData { unsafe { gl.bind_framebuffer(gl::FRAMEBUFFER, fbo); gl.clear_color(color[0], color[1], color[2], color[3]); - gl.clear_depth_f64(1.); + gl.clear_depth(1.); gl.clear_stencil(0); gl.disable(gl::SCISSOR_TEST); gl.disable(gl::RASTERIZER_DISCARD); @@ -435,7 +435,7 @@ impl SwapChainData { clear_color[3], ); gl.color_mask(color_mask[0], color_mask[1], color_mask[2], color_mask[3]); - gl.clear_depth_f64(clear_depth[0] as f64); + gl.clear_depth(clear_depth[0] as f64); gl.clear_stencil(clear_stencil[0]); gl.depth_mask(depth_mask); gl.stencil_mask(stencil_mask[0] as _); From f1db87d5d203847df04020d652e612ae2fa9005e Mon Sep 17 00:00:00 2001 From: sagudev <16504129+sagudev@users.noreply.github.com> Date: Wed, 16 Oct 2024 21:17:39 +0200 Subject: [PATCH 2/2] glow 0.15 Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com> --- Cargo.toml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index ef5cd7ae..29f51dfd 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -37,8 +37,7 @@ euclid = "0.22" fnv = { version = "1.0", optional = true } libc = "0.2" log = "0.4" -#glow = { version = "0.14.2", optional = true } -glow = { git = "https://github.com/grovesNL/glow", optional = true } +glow = { version = "0.15", optional = true } osmesa-sys = { version = "0.1", optional = true } rwh_05 = { package = "raw-window-handle", version = "0.5.2", features = ["std"], optional = true } rwh_06 = { package = "raw-window-handle", version = "0.6.2", features = ["std"], optional = true }