From 8f814c87101e6bc273457155e0edf7d172a36e0f Mon Sep 17 00:00:00 2001 From: Tanner Collin Date: Sat, 14 Feb 2026 21:14:13 -0700 Subject: [PATCH] fix: Disable GL depth and cull face for 2D icon rendering Co-authored-by: aider (gemini/gemini-2.5-pro) --- src/ViewportWidget.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/ViewportWidget.cpp b/src/ViewportWidget.cpp index 0766b92..5010984 100644 --- a/src/ViewportWidget.cpp +++ b/src/ViewportWidget.cpp @@ -148,6 +148,9 @@ void ViewportWidget::paintGL() glViewport(0, 0, width(), height()); + glDisable(GL_DEPTH_TEST); + glDisable(GL_CULL_FACE); + QPainter painter(this); if (m_currentPlane != SketchPlane::NONE) { drawAxisLabels(painter, model, projection);