From 2dfd87f276cb8a9cb7001a76eadec89c5ecda02a Mon Sep 17 00:00:00 2001 From: Kp Date: Sat, 28 May 2016 17:31:26 +0000 Subject: [PATCH] Move OGL_VIEWPORT assignments above glViewport --- common/include/internal.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/include/internal.h b/common/include/internal.h index eaeabcd12..1b7e87a54 100644 --- a/common/include/internal.h +++ b/common/include/internal.h @@ -43,9 +43,9 @@ static inline void OGL_VIEWPORT(const unsigned x, const unsigned y, const unsign { if (w!=last_width || h!=last_height) { + last_width = w; + last_height = h; glViewport(x,grd_curscreen->sc_canvas.cv_bitmap.bm_h-y-h,w,h); - last_width=w; - last_height=h; } } }