mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-25 03:00:46 +00:00
polymost.cpp: fix polymost_dorotatesprite() alpha test/blend issue introduced in r7619
git-svn-id: https://svn.eduke32.com/eduke32@7625 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
775a0de6c1
commit
40737f44cc
1 changed files with 8 additions and 2 deletions
|
@ -6847,8 +6847,6 @@ void polymost_dorotatesprite(int32_t sx, int32_t sy, int32_t z, int16_t a, int16
|
||||||
glLoadIdentity();
|
glLoadIdentity();
|
||||||
|
|
||||||
glDisable(GL_DEPTH_TEST);
|
glDisable(GL_DEPTH_TEST);
|
||||||
glEnable(GL_ALPHA_TEST);
|
|
||||||
glEnable(GL_BLEND);
|
|
||||||
|
|
||||||
#if defined(POLYMER)
|
#if defined(POLYMER)
|
||||||
# ifdef USE_GLEXT
|
# ifdef USE_GLEXT
|
||||||
|
@ -6861,11 +6859,19 @@ void polymost_dorotatesprite(int32_t sx, int32_t sy, int32_t z, int16_t a, int16
|
||||||
|
|
||||||
if (!(dastat & RS_NOMASK))
|
if (!(dastat & RS_NOMASK))
|
||||||
{
|
{
|
||||||
|
glEnable(GL_ALPHA_TEST);
|
||||||
|
glEnable(GL_BLEND);
|
||||||
|
|
||||||
if (dastat & RS_TRANS1)
|
if (dastat & RS_TRANS1)
|
||||||
method |= (dastat & RS_TRANS2) ? DAMETH_TRANS2 : DAMETH_TRANS1;
|
method |= (dastat & RS_TRANS2) ? DAMETH_TRANS2 : DAMETH_TRANS1;
|
||||||
else
|
else
|
||||||
method |= DAMETH_MASK;
|
method |= DAMETH_MASK;
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
glDisable(GL_ALPHA_TEST);
|
||||||
|
glDisable(GL_BLEND);
|
||||||
|
}
|
||||||
|
|
||||||
handle_blend(!!(dastat & RS_TRANS1), dablend, !!(dastat & RS_TRANS2));
|
handle_blend(!!(dastat & RS_TRANS1), dablend, !!(dastat & RS_TRANS2));
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue