fix: Disable GL depth and cull face for 2D icon rendering
Co-authored-by: aider (gemini/gemini-2.5-pro) <aider@aider.chat>
This commit is contained in:
@@ -148,6 +148,9 @@ void ViewportWidget::paintGL()
|
|||||||
|
|
||||||
glViewport(0, 0, width(), height());
|
glViewport(0, 0, width(), height());
|
||||||
|
|
||||||
|
glDisable(GL_DEPTH_TEST);
|
||||||
|
glDisable(GL_CULL_FACE);
|
||||||
|
|
||||||
QPainter painter(this);
|
QPainter painter(this);
|
||||||
if (m_currentPlane != SketchPlane::NONE) {
|
if (m_currentPlane != SketchPlane::NONE) {
|
||||||
drawAxisLabels(painter, model, projection);
|
drawAxisLabels(painter, model, projection);
|
||||||
|
|||||||
Reference in New Issue
Block a user