fixed tests

This commit is contained in:
2025-12-30 08:40:42 +03:00
parent 0ca471ed4f
commit 368272b1e8

View File

@@ -239,8 +239,8 @@ int main()
// flatten EBO to GL indices // flatten EBO to GL indices
std::vector<GLuint> flatIndices; std::vector<GLuint> flatIndices;
flatIndices.reserve(cube.m_vertex_array_object.size() * 3); flatIndices.reserve(cube.m_element_buffer_object.size() * 3);
for (const auto& tri : cube.m_vertex_array_object) for (const auto& tri : cube.m_element_buffer_object)
{ {
flatIndices.push_back(tri.x); flatIndices.push_back(tri.x);
flatIndices.push_back(tri.y); flatIndices.push_back(tri.y);