Skip to content

Commit 073d002

Browse files
committed
renderlights GL_QUADS->GL_TRIANGLE_FAN for #234
1 parent 03b3392 commit 073d002

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/engine/render/renderlights.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -1929,10 +1929,10 @@ VAR(depthfaillights, 0, 1, 1);
19291929

19301930
static void lightquads(float z, float sx1, float sy1, float sx2, float sy2)
19311931
{
1932+
gle::attribf(sx1, sy1, z);
19321933
gle::attribf(sx1, sy2, z);
19331934
gle::attribf(sx2, sy2, z);
19341935
gle::attribf(sx2, sy1, z);
1935-
gle::attribf(sx1, sy1, z);
19361936
}
19371937

19381938
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,
19871987
int btx1, bty1, btx2, bty2;
19881988
calctilebounds(bsx1, bsy1, bsx2, bsy2, btx1, bty1, btx2, bty2);
19891989

1990-
gle::begin(GL_QUADS);
1990+
gle::begin(GL_TRIANGLE_FAN);
19911991
lightquads(sz1, bsx1, bsy1, bsx2, bsy2, btx1, bty1, btx2, bty2, tilemask);
19921992
gle::end();
19931993
}

0 commit comments

Comments
 (0)