diff options
author | Jelle Raaijmakers <jelle@gmta.nl> | 2022-01-20 02:20:42 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2022-01-20 10:35:01 +0100 |
commit | a8655fbf52dd5170c7b162b964480bf859a4e905 (patch) | |
tree | e69aa0833a0d2b80b7b5a792b1c920e1c4cb858e /Userland/Libraries/LibSoftGPU | |
parent | 12d7b4e9ac27c80b8b6cf527976d3aaccafd9a00 (diff) | |
download | serenity-a8655fbf52dd5170c7b162b964480bf859a4e905.zip |
LibGL+LibSoftGPU: Clean up some `for` loops
Diffstat (limited to 'Userland/Libraries/LibSoftGPU')
-rw-r--r-- | Userland/Libraries/LibSoftGPU/Device.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Userland/Libraries/LibSoftGPU/Device.cpp b/Userland/Libraries/LibSoftGPU/Device.cpp index 444a3d365f..7309a94969 100644 --- a/Userland/Libraries/LibSoftGPU/Device.cpp +++ b/Userland/Libraries/LibSoftGPU/Device.cpp @@ -733,8 +733,8 @@ void Device::draw_primitives(PrimitiveType primitive_type, FloatMatrix4x4 const& Triangle triangle; triangle.vertices[0] = vertices.at(0); // Root vertex is always the vertex defined first - for (size_t i = 1; i < vertices.size() - 1; i++) // This is technically `n-2` triangles. We start at index 1 - { + // This is technically `n-2` triangles. We start at index 1 + for (size_t i = 1; i < vertices.size() - 1; i++) { triangle.vertices[1] = vertices.at(i); triangle.vertices[2] = vertices.at(i + 1); m_triangle_list.append(triangle); |