We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 03b3392 commit 073d002Copy full SHA for 073d002
src/engine/render/renderlights.cpp
@@ -1929,10 +1929,10 @@ VAR(depthfaillights, 0, 1, 1);
1929
1930
static void lightquads(float z, float sx1, float sy1, float sx2, float sy2)
1931
{
1932
+ gle::attribf(sx1, sy1, z);
1933
gle::attribf(sx1, sy2, z);
1934
gle::attribf(sx2, sy2, z);
1935
gle::attribf(sx2, sy1, z);
- gle::attribf(sx1, sy1, z);
1936
}
1937
1938
static void lightquads(float z, float sx1, float sy1, float sx2, float sy2, int tx1, int ty1, int tx2, int ty2)
@@ -1987,7 +1987,7 @@ static void lightquad(float sz1, float bsx1, float bsy1, float bsx2, float bsy2,
1987
int btx1, bty1, btx2, bty2;
1988
calctilebounds(bsx1, bsy1, bsx2, bsy2, btx1, bty1, btx2, bty2);
1989
1990
- gle::begin(GL_QUADS);
+ gle::begin(GL_TRIANGLE_FAN);
1991
lightquads(sz1, bsx1, bsy1, bsx2, bsy2, btx1, bty1, btx2, bty2, tilemask);
1992
gle::end();
1993
0 commit comments