mirror of
https://github.com/orange-cpp/omath.git
synced 2026-02-13 07:03:25 +00:00
fixed tests
This commit is contained in:
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user