From ab5e53fb546243af90b3a4bdbe11ebac974ffabf Mon Sep 17 00:00:00 2001 From: Jeremy HU Date: Tue, 9 Jul 2019 18:12:08 +0930 Subject: [PATCH] Fix build error on Raspberry PI 3 Model B+ --- src/modelwidget.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/modelwidget.cpp b/src/modelwidget.cpp index d6d431a9..b56d886c 100644 --- a/src/modelwidget.cpp +++ b/src/modelwidget.cpp @@ -144,7 +144,9 @@ void ModelWidget::paintGL() glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); glEnable(GL_DEPTH_TEST); glEnable(GL_CULL_FACE); +#ifdef GL_LINE_SMOOTH glEnable(GL_LINE_SMOOTH); +#endif m_world.setToIdentity(); m_world.rotate(m_xRot / 16.0f, 1, 0, 0);