mirror of
https://github.com/AquariaOSE/Aquaria.git
synced 2024-11-29 03:33:48 +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())
|
||||
return;
|
||||
|
||||
if(renderBorders)
|
||||
glLineWidth(2);
|
||||
|
||||
RenderState rx(rs);
|
||||
|
||||
// prepare. get parallax scroll factors
|
||||
|
@ -187,7 +190,6 @@ void TileRender::onRender(const RenderState& rs) const
|
|||
core->getDefaultQuadBorderBuf()->apply();
|
||||
glPointSize(16);
|
||||
glDrawArrays(GL_POINTS, 4, 1);
|
||||
glLineWidth(2);
|
||||
glDrawArrays(GL_LINE_LOOP, 0, 4);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue