diff --git a/src/modules/graphics/Geometry.cpp b/src/modules/graphics/Geometry.cpp index 9335f278e..76c77392a 100644 --- a/src/modules/graphics/Geometry.cpp +++ b/src/modules/graphics/Geometry.cpp @@ -133,6 +133,13 @@ void Geometry::setVertex(size_t i, const vertex &v) void Geometry::flip(bool x, bool y) { + for (size_t i = 0; i < polygon.size(); ++i) + { + vertex &v = polygon[i]; + if (x) v.x = x_max + x_min - v.x; + if (y) v.y = y_max + y_min - v.y; + } + for (size_t i = 0; i < vertexCount; ++i) { vertex &v = vertexArray[i]; diff --git a/src/modules/graphics/opengl/Canvas.cpp b/src/modules/graphics/opengl/Canvas.cpp index 0f9e768d4..f03d66328 100644 --- a/src/modules/graphics/opengl/Canvas.cpp +++ b/src/modules/graphics/opengl/Canvas.cpp @@ -65,7 +65,7 @@ struct FramebufferStrategy /** * @param[in] canvases List of canvases to attach **/ - virtual void setAttachments(const std::vector &canvases) { (void)canvases; } + virtual void setAttachments(const std::vector &) {} /// stop using all additional attached canvases virtual void setAttachments() {}