File tree Expand file tree Collapse file tree 1 file changed +2
-10
lines changed
Expand file tree Collapse file tree 1 file changed +2
-10
lines changed Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments