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 _);