From 1ef96019663e72f222c2d9edbf567d92c998ca1f Mon Sep 17 00:00:00 2001 From: twinaphex Date: Sat, 14 Nov 2015 05:27:44 +0100 Subject: [PATCH] Revert "(GL) Cleanups" This reverts commit 36d5cc890b37a3f351877bb6b83851e4c5af57dd. --- gfx/drivers/gl.c | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/gfx/drivers/gl.c b/gfx/drivers/gl.c index 191695962b..ab254a99ec 100644 --- a/gfx/drivers/gl.c +++ b/gfx/drivers/gl.c @@ -899,16 +899,18 @@ static void gl_set_viewport(void *data, unsigned viewport_width, viewport_height = (unsigned)roundf(2.0f * viewport_height * delta); } } + + gl->vp.x = x; + gl->vp.y = y; + gl->vp.width = viewport_width; + gl->vp.height = viewport_height; } else { - x = 0; - y = 0; + gl->vp.x = gl->vp.y = 0; + gl->vp.width = viewport_width; + gl->vp.height = viewport_height; } - gl->vp.x = x; - gl->vp.y = y; - gl->vp.width = viewport_width; - gl->vp.height = viewport_height; #if defined(RARCH_MOBILE) /* In portrait mode, we want viewport to gravitate to top of screen. */