Skip to content

Commit

Permalink
Improve Wavefoem labels for GLSL ES
Browse files Browse the repository at this point in the history
  • Loading branch information
daschuer committed Sep 14, 2023
1 parent 8636519 commit 0b779b4
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions src/waveform/waveformwidgetfactory.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1171,14 +1171,17 @@ QString WaveformWidgetFactory::buildWidgetDisplayName() const {
extras.push_back(tr("legacy"));
}
if (isOpenGlAvailable() || isOpenGlesAvailable()) {
if (WaveformT::useOpenGLShaders()) {
if (WaveformT::useOpenGles()) {
if (WaveformT::useOpenGLShaders()) {
extras.push_back(QStringLiteral("GLSL ES"));
} else {
extras.push_back(QStringLiteral("GLES"));
}
} else if (WaveformT::useOpenGLShaders()) {
extras.push_back(QStringLiteral("GLSL"));
} else if (WaveformT::useOpenGl()) {
extras.push_back(QStringLiteral("GL"));
}
if (WaveformT::useOpenGles()) {
extras.push_back(QStringLiteral("ES"));
}
}
QString name = WaveformT::getWaveformWidgetName();
if (extras.isEmpty()) {
Expand Down

0 comments on commit 0b779b4

Please sign in to comment.