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

@@ -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 {