mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-25 19:20:46 +00:00
Couple of cleanups.
git-svn-id: https://svn.eduke32.com/eduke32@1313 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
ec71eebecb
commit
6d5571f320
1 changed files with 15 additions and 15 deletions
|
@ -533,6 +533,11 @@ GLfloat spritemodelview[16];
|
|||
GLfloat rootmodelviewmatrix[16];
|
||||
GLfloat *curmodelviewmatrix;
|
||||
|
||||
static int16_t sectorqueue[MAXSECTORS];
|
||||
static int16_t querydelay[MAXSECTORS];
|
||||
static GLuint queryid[MAXWALLS];
|
||||
static int16_t drawingstate[MAXSECTORS];
|
||||
|
||||
float horizang;
|
||||
int16_t viewangle;
|
||||
|
||||
|
@ -881,7 +886,7 @@ void polymer_drawsprite(int32_t snum)
|
|||
}
|
||||
|
||||
if (((tspr->cstat>>4) & 3) == 0)
|
||||
xratio = (float)(tspr->xrepeat) * 0.20f;
|
||||
xratio = (float)(tspr->xrepeat) * 0.20f; // 32 / 160
|
||||
else
|
||||
xratio = (float)(tspr->xrepeat) * 0.25f;
|
||||
|
||||
|
@ -1024,13 +1029,6 @@ void polymer_setanimatesprites(animatespritesptr animatesprites,
|
|||
asi.smoothratio = smoothratio;
|
||||
}
|
||||
|
||||
static int16_t sectorqueue[MAXSECTORS];
|
||||
static int16_t querydelay[MAXSECTORS];
|
||||
static GLuint queryid[MAXWALLS];
|
||||
static int16_t drawingstate[MAXSECTORS];
|
||||
static spritetype localtsprite[MAXSPRITESONSCREEN];
|
||||
static int16_t localmaskwall[MAXWALLSB];
|
||||
|
||||
// CORE
|
||||
static void polymer_displayrooms(int16_t dacursectnum)
|
||||
{
|
||||
|
@ -1044,6 +1042,8 @@ static void polymer_displayrooms(int16_t dacursectnum)
|
|||
GLfloat localprojectionmatrix[16];
|
||||
float frustum[5 * 4];
|
||||
int32_t localspritesortcnt;
|
||||
spritetype localtsprite[MAXSPRITESONSCREEN];
|
||||
int16_t localmaskwall[MAXWALLSB];
|
||||
int16_t localmaskwallcnt;
|
||||
_prmirror mirrorlist[10];
|
||||
int mirrorcount;
|
||||
|
@ -2397,7 +2397,7 @@ static void polymer_buffertoplane(GLfloat* buffer, GLushort* indices, in
|
|||
|
||||
norm = plane[0] * plane[0] + plane[1] * plane[1] + plane[2] * plane[2];
|
||||
|
||||
if (norm >= 5000) // hack to work around a precision issue with slopes
|
||||
if (norm >= 15000) // hack to work around a precision issue with slopes
|
||||
{
|
||||
// normalize the normal/plane equation and calculate its plane norm
|
||||
norm = -sqrt(norm);
|
||||
|
|
Loading…
Reference in a new issue