Skip to content

Commit

Permalink
renderlights GL_QUADS->GL_TRIANGLE_FAN for #234
Browse files Browse the repository at this point in the history
  • Loading branch information
no-lex committed Sep 10, 2022
1 parent 03b3392 commit 073d002
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/engine/render/renderlights.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1929,10 +1929,10 @@ VAR(depthfaillights, 0, 1, 1);

static void lightquads(float z, float sx1, float sy1, float sx2, float sy2)
{
gle::attribf(sx1, sy1, z);
gle::attribf(sx1, sy2, z);
gle::attribf(sx2, sy2, z);
gle::attribf(sx2, sy1, z);
gle::attribf(sx1, sy1, z);
}

static void lightquads(float z, float sx1, float sy1, float sx2, float sy2, int tx1, int ty1, int tx2, int ty2)
Expand Down Expand Up @@ -1987,7 +1987,7 @@ static void lightquad(float sz1, float bsx1, float bsy1, float bsx2, float bsy2,
int btx1, bty1, btx2, bty2;
calctilebounds(bsx1, bsy1, bsx2, bsy2, btx1, bty1, btx2, bty2);

gle::begin(GL_QUADS);
gle::begin(GL_TRIANGLE_FAN);
lightquads(sz1, bsx1, bsy1, bsx2, bsy2, btx1, bty1, btx2, bty2, tilemask);
gle::end();
}
Expand Down

0 comments on commit 073d002

Please sign in to comment.