mirror of
https://github.com/AquariaOSE/Aquaria.git
synced 2024-11-25 17:53:47 +00:00
don't need to set line width again and again
This commit is contained in:
parent
a111bfc17f
commit
c959b9f6d6
1 changed files with 3 additions and 1 deletions
|
@ -46,6 +46,9 @@ void TileRender::onRender(const RenderState& rs) const
|
||||||
if(storage.tiles.empty())
|
if(storage.tiles.empty())
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
if(renderBorders)
|
||||||
|
glLineWidth(2);
|
||||||
|
|
||||||
RenderState rx(rs);
|
RenderState rx(rs);
|
||||||
|
|
||||||
// prepare. get parallax scroll factors
|
// prepare. get parallax scroll factors
|
||||||
|
@ -187,7 +190,6 @@ void TileRender::onRender(const RenderState& rs) const
|
||||||
core->getDefaultQuadBorderBuf()->apply();
|
core->getDefaultQuadBorderBuf()->apply();
|
||||||
glPointSize(16);
|
glPointSize(16);
|
||||||
glDrawArrays(GL_POINTS, 4, 1);
|
glDrawArrays(GL_POINTS, 4, 1);
|
||||||
glLineWidth(2);
|
|
||||||
glDrawArrays(GL_LINE_LOOP, 0, 4);
|
glDrawArrays(GL_LINE_LOOP, 0, 4);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue