Skip to content

Commit

Permalink
f
Browse files Browse the repository at this point in the history
Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>
  • Loading branch information
sagudev committed Jan 6, 2025
1 parent e314a75 commit aee2434
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/platform/macos/cgl/surface.rs
Original file line number Diff line number Diff line change
Expand Up @@ -416,7 +416,9 @@ struct FramebufferGuard {

impl Drop for FramebufferGuard {
fn drop(&mut self) {
self.gl.bind_framebuffer(gl::READ_FRAMEBUFFER, self.read);
self.gl.bind_framebuffer(gl::DRAW_FRAMEBUFFER, self.draw);
unsafe {
self.gl.bind_framebuffer(gl::READ_FRAMEBUFFER, self.read);
self.gl.bind_framebuffer(gl::DRAW_FRAMEBUFFER, self.draw);
}
}
}

0 comments on commit aee2434

Please sign in to comment.