rt(gl): remove unnecessary unstable features
polyfill strict_provenance with sptr
This commit is contained in:
parent
7c0190004f
commit
552be8c34e
7
Cargo.lock
generated
7
Cargo.lock
generated
|
@ -1353,6 +1353,7 @@ dependencies = [
|
|||
"librashader-spirv-cross",
|
||||
"rayon",
|
||||
"rustc-hash",
|
||||
"sptr",
|
||||
"thiserror",
|
||||
]
|
||||
|
||||
|
@ -2180,6 +2181,12 @@ dependencies = [
|
|||
"cmake",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "sptr"
|
||||
version = "0.3.2"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "3b9b39299b249ad65f3b7e96443bad61c02ca5cd3589f46cb6d610a0fd6c0d6a"
|
||||
|
||||
[[package]]
|
||||
name = "strsim"
|
||||
version = "0.10.0"
|
||||
|
|
|
@ -26,6 +26,8 @@ bytemuck = "1.12.3"
|
|||
thiserror = "1.0.37"
|
||||
rayon = "1.6.1"
|
||||
|
||||
sptr = "0.3"
|
||||
|
||||
[dev-dependencies]
|
||||
glfw = "0.47.0"
|
||||
|
||||
|
|
|
@ -52,7 +52,7 @@ impl DrawQuad for Gl3DrawQuad {
|
|||
gl::FLOAT,
|
||||
gl::FALSE,
|
||||
(4 * std::mem::size_of::<f32>()) as GLsizei,
|
||||
std::ptr::invalid(0),
|
||||
sptr::invalid(0),
|
||||
);
|
||||
gl::VertexAttribPointer(
|
||||
1,
|
||||
|
@ -60,7 +60,7 @@ impl DrawQuad for Gl3DrawQuad {
|
|||
gl::FLOAT,
|
||||
gl::FALSE,
|
||||
(4 * std::mem::size_of::<f32>()) as GLsizei,
|
||||
std::ptr::invalid(2 * std::mem::size_of::<f32>()),
|
||||
sptr::invalid(2 * std::mem::size_of::<f32>()),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -3,7 +3,6 @@
|
|||
//! This crate should not be used directly.
|
||||
//! See [`librashader::runtime::gl`](https://docs.rs/librashader/latest/librashader/runtime/gl/index.html) instead.
|
||||
#![deny(unsafe_op_in_unsafe_fn)]
|
||||
#![feature(strict_provenance)]
|
||||
#![feature(let_chains)]
|
||||
#![feature(type_alias_impl_trait)]
|
||||
|
||||
|
|
Loading…
Reference in a new issue