mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-26 03:30:46 +00:00
Patch from Nuke.YKT to increase the size of sloptable[]
git-svn-id: https://svn.eduke32.com/eduke32@7717 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
d3f93fc00f
commit
3cdc20cac1
2 changed files with 7 additions and 7 deletions
|
@ -107,7 +107,7 @@ void hlineasm4(bssize_t cnt, int32_t skiploadincs, int32_t paloffs, uint32_t by,
|
||||||
|
|
||||||
|
|
||||||
///// Sloped ceiling/floor vertical line functions /////
|
///// Sloped ceiling/floor vertical line functions /////
|
||||||
extern int32_t sloptable[16384];
|
extern int32_t sloptable[32768];
|
||||||
|
|
||||||
void slopevlin(intptr_t p, int32_t i, intptr_t slopaloffs, bssize_t cnt, int32_t bx, int32_t by)
|
void slopevlin(intptr_t p, int32_t i, intptr_t slopaloffs, bssize_t cnt, int32_t bx, int32_t by)
|
||||||
{
|
{
|
||||||
|
@ -119,7 +119,7 @@ void slopevlin(intptr_t p, int32_t i, intptr_t slopaloffs, bssize_t cnt, int32_t
|
||||||
slopalptr = (intptr_t *)slopaloffs;
|
slopalptr = (intptr_t *)slopaloffs;
|
||||||
for (; cnt>0; cnt--)
|
for (; cnt>0; cnt--)
|
||||||
{
|
{
|
||||||
i = (sloptable[(bz>>6)+8192]); bz += bzinc;
|
i = (sloptable[(bz>>6)+16384]); bz += bzinc;
|
||||||
u = bx+(inthi_t)globalx3*i;
|
u = bx+(inthi_t)globalx3*i;
|
||||||
v = by+(inthi_t)globaly3*i;
|
v = by+(inthi_t)globaly3*i;
|
||||||
(*(char *)p) = *(char *)(((intptr_t)slopalptr[0])+gbuf[((u>>(32-glogx))<<glogy)+(v>>(32-glogy))]);
|
(*(char *)p) = *(char *)(((intptr_t)slopalptr[0])+gbuf[((u>>(32-glogx))<<glogy)+(v>>(32-glogy))]);
|
||||||
|
|
|
@ -164,7 +164,7 @@ int32_t globalx1, globaly2, globalx3, globaly3;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
int32_t sloptable[16384];
|
int32_t sloptable[32768];
|
||||||
static intptr_t slopalookup[16384]; // was 2048
|
static intptr_t slopalookup[16384]; // was 2048
|
||||||
|
|
||||||
static int32_t no_radarang2 = 0;
|
static int32_t no_radarang2 = 0;
|
||||||
|
@ -3393,7 +3393,7 @@ static void tslopevlin(uint8_t *p, const intptr_t *slopalptr, bssize_t cnt, int3
|
||||||
|
|
||||||
do
|
do
|
||||||
{
|
{
|
||||||
int const i = (sloptable[(bz>>6)+8192]); bz += bzinc;
|
int const i = (sloptable[(bz>>6)+16384]); bz += bzinc;
|
||||||
uint32_t u = bx + xtou*i;
|
uint32_t u = bx + xtou*i;
|
||||||
uint32_t v = by + ytov*i;
|
uint32_t v = by + ytov*i;
|
||||||
uint8_t ch = buf[((u>>(32-logx))<<logy)+(v>>(32-logy))];
|
uint8_t ch = buf[((u>>(32-logx))<<logy)+(v>>(32-logy))];
|
||||||
|
@ -3423,7 +3423,7 @@ static void mslopevlin(uint8_t *p, const intptr_t *slopalptr, bssize_t cnt, int3
|
||||||
|
|
||||||
do
|
do
|
||||||
{
|
{
|
||||||
int const i = (sloptable[(bz>>6)+8192]); bz += bzinc;
|
int const i = (sloptable[(bz>>6)+16384]); bz += bzinc;
|
||||||
uint32_t u = bx + xtou*i;
|
uint32_t u = bx + xtou*i;
|
||||||
uint32_t v = by + ytov*i;
|
uint32_t v = by + ytov*i;
|
||||||
uint8_t ch = buf[((u>>(32-logx))<<logy)+(v>>(32-logy))];
|
uint8_t ch = buf[((u>>(32-logx))<<logy)+(v>>(32-logy))];
|
||||||
|
@ -7229,8 +7229,8 @@ static int32_t engineLoadTables(void)
|
||||||
for (i=0; i<2048; i++)
|
for (i=0; i<2048; i++)
|
||||||
reciptable[i] = divscale30(2048, i+2048);
|
reciptable[i] = divscale30(2048, i+2048);
|
||||||
|
|
||||||
for (i=0; i<16384; i++)
|
for (i=0; i<32768; i++)
|
||||||
sloptable[i] = krecipasm(i-8192);
|
sloptable[i] = krecipasm(i-16384);
|
||||||
|
|
||||||
for (i=0; i<=512; i++)
|
for (i=0; i<=512; i++)
|
||||||
sintable[i] = (int16_t)(16384.f * sinf((float)i * BANG2RAD));
|
sintable[i] = (int16_t)(16384.f * sinf((float)i * BANG2RAD));
|
||||||
|
|
Loading…
Reference in a new issue