diff --git a/qt/lc_qpreferencesdialog.cpp b/qt/lc_qpreferencesdialog.cpp index c6052ec4..ffe8ca73 100644 --- a/qt/lc_qpreferencesdialog.cpp +++ b/qt/lc_qpreferencesdialog.cpp @@ -79,12 +79,14 @@ lcQPreferencesDialog::lcQPreferencesDialog(QWidget* Parent, lcPreferencesDialogO ui->antiAliasingSamples->setCurrentIndex(0); ui->edgeLines->setChecked(mOptions->Preferences.mDrawEdgeLines); +#ifndef LC_OPENGLES if (QSurfaceFormat::defaultFormat().samples() > 1) { glGetFloatv(GL_SMOOTH_LINE_WIDTH_RANGE, mLineWidthRange); glGetFloatv(GL_SMOOTH_LINE_WIDTH_GRANULARITY, &mLineWidthGranularity); } else +#endif { glGetFloatv(GL_ALIASED_LINE_WIDTH_RANGE, mLineWidthRange); mLineWidthGranularity = 1.0f;