summaryrefslogtreecommitdiffstats
path: root/src/GalOgl.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/GalOgl.cpp')
-rw-r--r--src/GalOgl.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/GalOgl.cpp b/src/GalOgl.cpp
index 052c68a..29e7fc0 100644
--- a/src/GalOgl.cpp
+++ b/src/GalOgl.cpp
@@ -1055,6 +1055,10 @@ struct ImplOgl : public Impl {
glCheckError();
}
+ virtual void SetWireframe(bool enabled) override {
+ glPolygonMode(GL_FRONT_AND_BACK, enabled ? GL_LINE : GL_FILL);
+ }
+
virtual std::shared_ptr<Buffer> CreateBuffer() override {
auto buff = std::make_shared<BufferOgl>();