Skip to content

Commit da91224

Browse files
authored
Update glow_integration.rs
1 parent 321133c commit da91224

File tree

1 file changed

+2
-10
lines changed

1 file changed

+2
-10
lines changed

crates/eframe/src/native/glow_integration.rs

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -763,11 +763,7 @@ impl GlowWinitRunning {
763763
// vsync - don't count as frame-time:
764764
frame_timer.pause();
765765
crate::profile_scope!("swap_buffers");
766-
if let Err(err) = gl_surface.swap_buffers(
767-
current_gl_context,
768-
// .as_ref()
769-
// .expect("failed to get current context to swap buffers"),
770-
) {
766+
if let Err(err) = gl_surface.swap_buffers(current_gl_context) {
771767
log::error!("swap_buffers failed: {err}");
772768
}
773769
frame_timer.resume();
@@ -1265,11 +1261,7 @@ impl GlutinWindowContext {
12651261
return;
12661262
};
12671263

1268-
gl_surface.resize(
1269-
current_gl_context,
1270-
width_px,
1271-
height_px,
1272-
);
1264+
gl_surface.resize(current_gl_context, width_px, height_px);
12731265
}
12741266
}
12751267
}

0 commit comments

Comments
 (0)