fix: Enable OpenGL depth test and face culling for View Cube

Co-authored-by: aider (gemini/gemini-2.5-pro) <aider@aider.chat>
This commit is contained in:
2026-02-09 17:43:23 -07:00
parent 001f7f9bb3
commit c8b178e0a0

View File

@@ -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);