Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/backend/gl/src/info.rs
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ fn get_usize(gl: &gl::Gl, name: gl::types::GLenum) -> usize {
}

unsafe fn c_str_as_static_str(c_str: *const i8) -> &'static str {
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())
}

/// A unique platform identifier that does not change between releases
Expand Down