From fa61fed75cdfe3e6ac2edb6e45a3c04e8f653ccd Mon Sep 17 00:00:00 2001 From: helixhorned Date: Mon, 25 Feb 2013 15:31:16 +0000 Subject: [PATCH] engine.c: in setpolymost2dview(), set gloy=-1 unconditionally. This fixes an update issue: start EDuke32 without warping to a map in Polymost, change to classic, and change to Polymost again. The OSD background will be displaced. git-svn-id: https://svn.eduke32.com/eduke32@3525 1a8010ca-5511-0410-912e-c29ae57300e0 --- polymer/eduke32/build/src/engine.c | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/polymer/eduke32/build/src/engine.c b/polymer/eduke32/build/src/engine.c index 94f955262..39d51b479 100644 --- a/polymer/eduke32/build/src/engine.c +++ b/polymer/eduke32/build/src/engine.c @@ -16428,15 +16428,12 @@ void setpolymost2dview(void) #ifdef USE_OPENGL if (rendmode < 3) return; - if (gloy1 != -1) - { - bglViewport(0,0,xres,yres); - bglMatrixMode(GL_PROJECTION); - bglLoadIdentity(); - bglOrtho(0,xres,yres,0,-1,1); - bglMatrixMode(GL_MODELVIEW); - bglLoadIdentity(); - } + bglViewport(0,0,xres,yres); + bglMatrixMode(GL_PROJECTION); + bglLoadIdentity(); + bglOrtho(0,xres,yres,0,-1,1); + bglMatrixMode(GL_MODELVIEW); + bglLoadIdentity(); gloy1 = -1;