History

Changing loop to avoid unused warnings

Liv committed 9 years ago

Commit c3bf9151 parent 6e5cb631 file · +1 −1Browse files

Showing the changes to libraries/render-utils/src/GeometryCache.cpp (1 of 1 file). Show all

Unified · Split

libraries/render-utils/src/GeometryCache.cpp+1−1
@@ -265,7 +265,7 @@ void extrudePolygon(GeometryCache::ShapeData& shapeData, gpu::BufferPointer& ver · 264 unmodified lines
265265 // Top (if not conical) and bottom faces
266266 std::vector<vec3> shape = polygon<N>();
267267 if (isConical) {
268− for (const vec3& v : shape) {
268+ for (uint32_t i = 0; i < N; i++) {
269269 vertices.push_back(vec3(0, 0.5f, 0));
270270 vertices.push_back(vec3(0, 1, 0));
271271 }

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t