summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2022-12-04 12:25:53 +0100
committerStanislaw Halik <sthalik@misaki.pl>2022-12-04 12:27:12 +0100
commitf38e0159c7047c08fdea92a4a91b8037a4770a10 (patch)
treebb6b5c53cb3d66bfea7389489159e6285f7e0f49
parente029531c1f5701bbace5f63b6c84d1cd8c6cd2bb (diff)
main: try enabling antialiased lines
-rw-r--r--main/draw.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/main/draw.cpp b/main/draw.cpp
index 4906c889..cfb5ec80 100644
--- a/main/draw.cpp
+++ b/main/draw.cpp
@@ -29,6 +29,7 @@ void main_impl::recalc_viewport(Vector2i fb_size, Vector2i win_size) noexcept
GL::Renderer::enable(R::Feature::Blending);
GL::Renderer::enable(R::Feature::ScissorTest);
GL::Renderer::enable(R::Feature::DepthClamp);
+ glEnable(GL_LINE_SMOOTH);
GL::Renderer::setDepthFunction(R::DepthFunction::Greater);
GL::Renderer::setScissor({{}, fb_size});