diff --git a/gfx/drivers/gl.c b/gfx/drivers/gl.c index 3b6a44be99..426efad4de 100644 --- a/gfx/drivers/gl.c +++ b/gfx/drivers/gl.c @@ -1483,9 +1483,6 @@ static bool gl_frame(void *data, const void *frame, RARCH_PERFORMANCE_INIT(frame_run); RARCH_PERFORMANCE_START(frame_run); - if (!gl) - return true; - context_bind_hw_render(gl, false); #ifndef HAVE_OPENGLES diff --git a/gfx/drivers/sdl_gfx.c b/gfx/drivers/sdl_gfx.c index 22f826602c..9d235deb95 100644 --- a/gfx/drivers/sdl_gfx.c +++ b/gfx/drivers/sdl_gfx.c @@ -455,8 +455,9 @@ static void sdl_set_aspect_ratio(void *data, unsigned aspectratio_index) switch (aspectratio_index) { case ASPECT_RATIO_SQUARE: - video_viewport_set_square_pixel(global->system.av_info.geometry.base_width, - global->system.av_info.geometry.base_height); + video_viewport_set_square_pixel( + global->system.av_info.geometry.base_width, + global->system.av_info.geometry.base_height); break; case ASPECT_RATIO_CORE: