1
0
Fork 0
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:
fgenesis 2023-08-26 00:31:46 +02:00
parent a111bfc17f
commit c959b9f6d6

View file

@ -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);
} }
} }