mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
fix: render: Fix WorldRenderer::renderBlockSelection
Block selection clears before new selection be drawn Added a call to LineBatch::flush() to ensure that all buffered data is correctly uploaded to the GPU and rendered. The missing flush() was causing rendering artifacts, such as flickering of block outlines, which has now been resolved by ensuring that all accumulated data is processed and rendered properly. Signed-off-by: Vyacheslav Ivanov <islavaivanov76@gmail.com>
This commit is contained in:
parent
6da85af19b
commit
e399e95930
1 changed files with 1 additions and 0 deletions
|
|
@ -239,6 +239,7 @@ void WorldRenderer::renderBlockSelection() {
|
|||
lineBatch->line(point, point+norm*0.5f, glm::vec4(1.0f, 0.0f, 1.0f, 1.0f));
|
||||
}
|
||||
}
|
||||
lineBatch->flush();
|
||||
}
|
||||
|
||||
void WorldRenderer::renderLines(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue