mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-03-22 15:05:03 +01:00
remove duplicate user_data vector from world_vertex
update max. number of vertex attributes to avoid user data getting "reused" across mesh draws
This commit is contained in:
@@ -66,7 +66,7 @@ void gl::vao::bind()
|
|||||||
glEnableVertexAttribArray(param.attrib);
|
glEnableVertexAttribArray(param.attrib);
|
||||||
}
|
}
|
||||||
|
|
||||||
for (size_t i = params.size(); i < 4; i++)
|
for (size_t i = params.size(); i < 5; i++)
|
||||||
glDisableVertexAttribArray(i);
|
glDisableVertexAttribArray(i);
|
||||||
|
|
||||||
if (ebo)
|
if (ebo)
|
||||||
|
|||||||
Reference in New Issue
Block a user