mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-11-11 07:11:39 +00:00
Plug up alpha leaks in Polymost textures/rotatesprite.
git-svn-id: https://svn.eduke32.com/eduke32@3555 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
4b0cffaf81
commit
88313f7b50
1 changed files with 6 additions and 0 deletions
|
@ -3070,6 +3070,8 @@ void domost(float x0, float y0, float x1, float y1)
|
||||||
float spx[4], /*spy[4],*/ cy[2], cv[2];
|
float spx[4], /*spy[4],*/ cy[2], cv[2];
|
||||||
int32_t i, j, k, z, ni, vcnt = 0, scnt, newi, dir, spt[4];
|
int32_t i, j, k, z, ni, vcnt = 0, scnt, newi, dir, spt[4];
|
||||||
|
|
||||||
|
alpha = 0.f;
|
||||||
|
|
||||||
if (x0 < x1)
|
if (x0 < x1)
|
||||||
{
|
{
|
||||||
dir = 1; //clip dmost (floor)
|
dir = 1; //clip dmost (floor)
|
||||||
|
@ -3457,6 +3459,8 @@ static void polymost_drawalls(int32_t bunch)
|
||||||
static const int16_t zeropskyoff[MAXPSKYTILES] = { 0 };
|
static const int16_t zeropskyoff[MAXPSKYTILES] = { 0 };
|
||||||
const int16_t *dapskyoff;
|
const int16_t *dapskyoff;
|
||||||
|
|
||||||
|
alpha = 0.f;
|
||||||
|
|
||||||
sectnum = thesector[bunchfirst[bunch]]; sec = §or[sectnum];
|
sectnum = thesector[bunchfirst[bunch]]; sec = §or[sectnum];
|
||||||
|
|
||||||
//DRAW WALLS SECTION!
|
//DRAW WALLS SECTION!
|
||||||
|
@ -5736,6 +5740,8 @@ void polymost_dorotatesprite(int32_t sx, int32_t sy, int32_t z, int16_t a, int16
|
||||||
z = zz;
|
z = zz;
|
||||||
}
|
}
|
||||||
while (z);
|
while (z);
|
||||||
|
|
||||||
|
alpha = 0.f;
|
||||||
#ifdef USE_OPENGL
|
#ifdef USE_OPENGL
|
||||||
if (!nofog) bglDisable(GL_FOG);
|
if (!nofog) bglDisable(GL_FOG);
|
||||||
pow2xsplit = 0; drawpoly(px,py,n,method);
|
pow2xsplit = 0; drawpoly(px,py,n,method);
|
||||||
|
|
Loading…
Reference in a new issue