mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-11-11 07:11:39 +00:00
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
This commit is contained in:
parent
f791b5af20
commit
fa61fed75c
1 changed files with 6 additions and 9 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue