Skip to content

Commit

Permalink
Update glow_integration.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
rustbasic authored Jun 16, 2024
1 parent 321133c commit da91224
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions crates/eframe/src/native/glow_integration.rs
Original file line number Diff line number Diff line change
Expand Up @@ -763,11 +763,7 @@ impl GlowWinitRunning {
// vsync - don't count as frame-time:
frame_timer.pause();
crate::profile_scope!("swap_buffers");
if let Err(err) = gl_surface.swap_buffers(
current_gl_context,
// .as_ref()
// .expect("failed to get current context to swap buffers"),
) {
if let Err(err) = gl_surface.swap_buffers(current_gl_context) {
log::error!("swap_buffers failed: {err}");
}
frame_timer.resume();
Expand Down Expand Up @@ -1265,11 +1261,7 @@ impl GlutinWindowContext {
return;
};

gl_surface.resize(
current_gl_context,
width_px,
height_px,
);
gl_surface.resize(current_gl_context, width_px, height_px);
}
}
}
Expand Down

0 comments on commit da91224

Please sign in to comment.