fix graphics settings & reduce extra GL calls

This commit is contained in:
MihailRis 2026-07-14 19:03:32 +03:00
parent 25ce4a5077
commit 5b868ae857
7 changed files with 22 additions and 16 deletions

View file

@ -57,7 +57,7 @@ void LineBatch::box(float x, float y, float z, float w, float h, float d,
void LineBatch::flush(){
if (index == 0)
return;
mesh->reload(buffer.get(), index);
mesh->reload(buffer.get(), index, true);
mesh->draw(GL_LINES);
index = 0;
}