Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Shrink unsafe block #244

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
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
6 changes: 3 additions & 3 deletions src/gl/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -813,8 +813,8 @@ pub const DEPTH_ATTACHMENT: Attachment = gl::DEPTH_ATTACHMENT;
pub struct Framebuffer(glow::Framebuffer);

pub fn check_framebuffer_status() {
unsafe {
let status = glow_context().check_framebuffer_status(gl::FRAMEBUFFER);

let status = unsafe { glow_context().check_framebuffer_status(gl::FRAMEBUFFER) };
let s = match status {
gl::FRAMEBUFFER_UNDEFINED => "GL_FRAMEBUFFER_UNDEFINED",
gl::FRAMEBUFFER_INCOMPLETE_ATTACHMENT => "GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT",
Expand All @@ -838,7 +838,7 @@ pub fn check_framebuffer_status() {
status, s
);
}
}

}

pub fn check_gl_error() {
Expand Down