From 436536398ac078a961cf5dd853d8e451415267f5 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Tue, 24 Mar 2015 13:37:58 +0100 Subject: [PATCH] (GL) Conditional no longer needed - check is done outside in video_driver_frame --- gfx/drivers/gl.c | 3 --- gfx/drivers/sdl_gfx.c | 5 +++-- 2 files changed, 3 insertions(+), 5 deletions(-) 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: