From c8b178e0a0683af728444ec930ae86c23bcd6fef Mon Sep 17 00:00:00 2001 From: Tanner Collin Date: Mon, 9 Feb 2026 17:43:23 -0700 Subject: [PATCH] fix: Enable OpenGL depth test and face culling for View Cube 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 b1599dd..e8e2e30 100644 --- a/src/ViewportWidget.cpp +++ b/src/ViewportWidget.cpp @@ -45,6 +45,9 @@ void ViewportWidget::paintGL() glViewport(0, 0, width(), height()); glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); + glEnable(GL_DEPTH_TEST); + glEnable(GL_CULL_FACE); + QMatrix4x4 model; model.translate(panX, panY, zoom); model.rotate(xRot / 16.0f, 1, 0, 0);