We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 8b28891 + 13de074 commit 728694dCopy full SHA for 728694d
src/backend/gl/src/info.rs
@@ -136,7 +136,7 @@ fn get_usize(gl: &gl::Gl, name: gl::types::GLenum) -> usize {
136
}
137
138
unsafe fn c_str_as_static_str(c_str: *const i8) -> &'static str {
139
- mem::transmute(str::from_utf8(ffi::CStr::from_ptr(c_str).to_bytes()).unwrap())
+ mem::transmute(str::from_utf8(ffi::CStr::from_ptr(c_str as *const _).to_bytes()).unwrap())
140
141
142
/// A unique platform identifier that does not change between releases
0 commit comments