diff --git a/BBGE/TileRender.cpp b/BBGE/TileRender.cpp index a7df141..ac8f0eb 100644 --- a/BBGE/TileRender.cpp +++ b/BBGE/TileRender.cpp @@ -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); } }