16
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-07-17 23:39:18 +02:00

workaround for ebo binding issues, do not enable ai vehicles automatically on map

This commit is contained in:
milek7
2020-10-21 00:45:19 +02:00
parent df87b37b5b
commit 6af6f5156d
4 changed files with 22 additions and 9 deletions

View File

@@ -18,7 +18,7 @@ namespace gl
COPY_WRITE_BUFFER,
DISPATCH_INDIRECT_BUFFER,
DRAW_INDIRECT_BUFFER,
ELEMENT_ARRAY_BUFFER,
ELEMENT_ARRAY_BUFFER, // ELEMENT_ARRAY_BUFFER is part of VAO and therefore shouldn't be managed by global tracker!
PIXEL_PACK_BUFFER,
PIXEL_UNPACK_BUFFER,
SHADER_STORAGE_BUFFER,

View File

@@ -38,6 +38,8 @@ void gl::vao::setup_ebo(buffer &e)
{
if (use_vao) {
bind();
// ELEMENT_ARRAY_BUFFER is part of VAO and therefore shouldn't be managed by gl::buffer global tracker!
// but it is needed by it for buffer data management, so eh
e.bind(buffer::ELEMENT_ARRAY_BUFFER);
}
else {