mirror of
https://github.com/Drezil/imgui.git
synced 2024-11-15 09:27:00 +00:00
OpenGL3 example: fix growing of VBO
This commit is contained in:
parent
ac29859f70
commit
b3febabc30
@ -69,7 +69,7 @@ static void ImImpl_RenderDrawLists(ImDrawList** const cmd_lists, int cmd_lists_c
|
|||||||
if (neededBufferSize > vbo_max_size)
|
if (neededBufferSize > vbo_max_size)
|
||||||
{
|
{
|
||||||
vbo_max_size = neededBufferSize + 5000; // Grow buffer
|
vbo_max_size = neededBufferSize + 5000; // Grow buffer
|
||||||
glBufferData(GL_ARRAY_BUFFER, neededBufferSize, NULL, GL_STREAM_DRAW);
|
glBufferData(GL_ARRAY_BUFFER, vbo_max_size, NULL, GL_STREAM_DRAW);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Copy and convert all vertices into a single contiguous buffer
|
// Copy and convert all vertices into a single contiguous buffer
|
||||||
|
Loading…
Reference in New Issue
Block a user