mirror of
https://github.com/leozide/leocad
synced 2025-01-14 08:01:45 +01:00
GLES fix.
This commit is contained in:
parent
26c34e3609
commit
929cf2919c
1 changed files with 2 additions and 0 deletions
|
@ -79,12 +79,14 @@ lcQPreferencesDialog::lcQPreferencesDialog(QWidget* Parent, lcPreferencesDialogO
|
||||||
ui->antiAliasingSamples->setCurrentIndex(0);
|
ui->antiAliasingSamples->setCurrentIndex(0);
|
||||||
ui->edgeLines->setChecked(mOptions->Preferences.mDrawEdgeLines);
|
ui->edgeLines->setChecked(mOptions->Preferences.mDrawEdgeLines);
|
||||||
|
|
||||||
|
#ifndef LC_OPENGLES
|
||||||
if (QSurfaceFormat::defaultFormat().samples() > 1)
|
if (QSurfaceFormat::defaultFormat().samples() > 1)
|
||||||
{
|
{
|
||||||
glGetFloatv(GL_SMOOTH_LINE_WIDTH_RANGE, mLineWidthRange);
|
glGetFloatv(GL_SMOOTH_LINE_WIDTH_RANGE, mLineWidthRange);
|
||||||
glGetFloatv(GL_SMOOTH_LINE_WIDTH_GRANULARITY, &mLineWidthGranularity);
|
glGetFloatv(GL_SMOOTH_LINE_WIDTH_GRANULARITY, &mLineWidthGranularity);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
#endif
|
||||||
{
|
{
|
||||||
glGetFloatv(GL_ALIASED_LINE_WIDTH_RANGE, mLineWidthRange);
|
glGetFloatv(GL_ALIASED_LINE_WIDTH_RANGE, mLineWidthRange);
|
||||||
mLineWidthGranularity = 1.0f;
|
mLineWidthGranularity = 1.0f;
|
||||||
|
|
Loading…
Reference in a new issue