mirror of
https://github.com/ZDoom/raze-gles.git
synced 2025-01-12 03:00:38 +00:00
git-svn-id: https://svn.eduke32.com/eduke32@515 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
67efe33c18
commit
070c38a85e
3 changed files with 4 additions and 6 deletions
|
@ -836,7 +836,7 @@ static long mdloadskin (md2model *m, int number, int pal, int surf)
|
||||||
return(*texidx);
|
return(*texidx);
|
||||||
}
|
}
|
||||||
|
|
||||||
char mdpause;
|
int mdpause;
|
||||||
|
|
||||||
//Note: even though it says md2model, it works for both md2model&md3model
|
//Note: even though it says md2model, it works for both md2model&md3model
|
||||||
static void updateanimation (md2model *m, spritetype *tspr)
|
static void updateanimation (md2model *m, spritetype *tspr)
|
||||||
|
|
|
@ -412,6 +412,8 @@ pthtyp * gltexcache (long dapicnum, long dapalnum, long dameth)
|
||||||
{
|
{
|
||||||
memcpy(pth, pth2, sizeof(pthtyp));
|
memcpy(pth, pth2, sizeof(pthtyp));
|
||||||
pth->picnum = dapicnum;
|
pth->picnum = dapicnum;
|
||||||
|
pth->flags = ((dameth&4)>>2) + 2 + ((drawingskybox>0)<<2);
|
||||||
|
if (pth2->flags & 8) pth->flags |= 8; //hasalpha
|
||||||
pth->hicr = si;
|
pth->hicr = si;
|
||||||
pth->next = gltexcachead[j];
|
pth->next = gltexcachead[j];
|
||||||
gltexcachead[j] = pth;
|
gltexcachead[j] = pth;
|
||||||
|
@ -1710,8 +1712,6 @@ void drawpoly (double *dpx, double *dpy, long n, long method)
|
||||||
|
|
||||||
bglMatrixMode(GL_MODELVIEW);
|
bglMatrixMode(GL_MODELVIEW);
|
||||||
}
|
}
|
||||||
else
|
|
||||||
detailpth = NULL;
|
|
||||||
|
|
||||||
// glow texture
|
// glow texture
|
||||||
glowpth = NULL;
|
glowpth = NULL;
|
||||||
|
@ -1745,8 +1745,6 @@ void drawpoly (double *dpx, double *dpy, long n, long method)
|
||||||
bglTexParameteri(GL_TEXTURE_2D,GL_TEXTURE_WRAP_S,GL_REPEAT);
|
bglTexParameteri(GL_TEXTURE_2D,GL_TEXTURE_WRAP_S,GL_REPEAT);
|
||||||
bglTexParameteri(GL_TEXTURE_2D,GL_TEXTURE_WRAP_T,GL_REPEAT);
|
bglTexParameteri(GL_TEXTURE_2D,GL_TEXTURE_WRAP_T,GL_REPEAT);
|
||||||
}
|
}
|
||||||
else
|
|
||||||
glowpth = NULL;
|
|
||||||
|
|
||||||
if (pth && (pth->flags & 2))
|
if (pth && (pth->flags & 2))
|
||||||
{
|
{
|
||||||
|
|
|
@ -3458,7 +3458,7 @@ void displayrest(long smoothratio)
|
||||||
|
|
||||||
#if defined(POLYMOST) && defined(USE_OPENGL)
|
#if defined(POLYMOST) && defined(USE_OPENGL)
|
||||||
{
|
{
|
||||||
extern char mdpause;
|
extern int mdpause;
|
||||||
|
|
||||||
mdpause = 0;
|
mdpause = 0;
|
||||||
if (ud.pause_on || (ps[myconnectindex].gm&MODE_MENU && numplayers < 2))
|
if (ud.pause_on || (ps[myconnectindex].gm&MODE_MENU && numplayers < 2))
|
||||||
|
|
Loading…
Reference in a new issue