summaryrefslogtreecommitdiffhomepage
path: root/draw/quad-wall-n.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2022-12-04 11:27:14 +0100
committerStanislaw Halik <sthalik@misaki.pl>2022-12-04 12:26:24 +0100
commit2295ac3544573cd230b31f2bd40877f594ed5a05 (patch)
tree9532408f3136d42b64a4e5b8fe628ce2cd2ca1e7 /draw/quad-wall-n.cpp
parent15198214ef081e1d59d4f0e13ad9ef6c6463885d (diff)
draw: fix warning on vmware dri backend
GL_LINE_WIDTH_RANGE returns [1, 10] so checking it in a driver-agnostic manner doesn't solve the problem.
Diffstat (limited to 'draw/quad-wall-n.cpp')
-rw-r--r--draw/quad-wall-n.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/draw/quad-wall-n.cpp b/draw/quad-wall-n.cpp
index 2db11eb7..083f79ea 100644
--- a/draw/quad-wall-n.cpp
+++ b/draw/quad-wall-n.cpp
@@ -1,5 +1,5 @@
#include "quad-wall-n.hpp"
-#include <array>
+#include "wireframe.hpp"
#include <Magnum/GL/Renderer.h>
namespace floormat::wireframe {
@@ -22,7 +22,7 @@ quad_wall_n::quad_wall_n(Vector3 center, Vector3 size, float line_width) :
void quad_wall_n::on_draw() const
{
- GL::Renderer::setLineWidth(line_width);
+ mesh_base::set_line_width(line_width);
}
} // namespace floormat::wireframe