Fix of 3DBed Regression #6029
This commit is contained in:
parent
1661db6849
commit
a6bd2d7664
@ -34,7 +34,7 @@ bool GeometryBuffer::set_from_triangles(const std::vector<Vec2f> &triangles, flo
|
|||||||
assert(triangles.size() % 3 == 0);
|
assert(triangles.size() % 3 == 0);
|
||||||
m_vertices = std::vector<Vertex>(triangles.size(), Vertex());
|
m_vertices = std::vector<Vertex>(triangles.size(), Vertex());
|
||||||
|
|
||||||
Vec2f min(unscaled<float>(triangles.front()));
|
Vec2f min = triangles.front();
|
||||||
Vec2f max = min;
|
Vec2f max = min;
|
||||||
|
|
||||||
for (size_t v_count = 0; v_count < triangles.size(); ++ v_count) {
|
for (size_t v_count = 0; v_count < triangles.size(); ++ v_count) {
|
||||||
|
Loading…
Reference in New Issue
Block a user