summaryrefslogtreecommitdiffhomepage
path: root/main
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2023-08-18 02:15:19 +0200
committerStanislaw Halik <sthalik@misaki.pl>2023-08-18 02:15:19 +0200
commit0dc03dc4462a94c65eee85c90fd6b3f144c965ee (patch)
tree92f9c61e5e4aeb79bf50a0f0fb89371d57d4e59c /main
parent5770c36a34d4b1fbbd3e4d7802565bc59819227e (diff)
main: set provoking vertex
Diffstat (limited to 'main')
-rw-r--r--main/draw.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/main/draw.cpp b/main/draw.cpp
index 391d3526..449c1c70 100644
--- a/main/draw.cpp
+++ b/main/draw.cpp
@@ -50,6 +50,7 @@ void main_impl::recalc_viewport(Vector2i fb_size, Vector2i win_size) noexcept
// -- state ---
using R = GL::Renderer;
+ glEnable(GL_LINE_SMOOTH);
GL::Renderer::setBlendEquation(R::BlendEquation::Add, R::BlendEquation::Add);
GL::Renderer::setBlendFunction(R::BlendFunction::SourceAlpha, R::BlendFunction::OneMinusSourceAlpha);
GL::Renderer::disable(R::Feature::FaceCulling);
@@ -57,9 +58,9 @@ 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});
+ GL::Renderer::setProvokingVertex(R::ProvokingVertex::FirstVertexConvention);
// -- user--
app.on_viewport_event(fb_size);