Skip to content

Commit

Permalink
inherit unversioned QOpenGLFunctions class for GLWaveformRenderer
Browse files Browse the repository at this point in the history
The unversioned QOpenGLFunctions class provides the baseline
OpenGL functions available in Qt, namely OpenGL ES 2.0. Only
the legacy OpenGL waveform renderers require desktop OpenGL 2.1;
the rest of the OpenGL code works fine with OpenGL ES 2.0.
  • Loading branch information
Be-ing committed Feb 13, 2024
1 parent bc630c9 commit 9b53d02
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/waveform/renderers/glwaveformrenderer.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

#include <QtGui/qtgui-config.h> // for QT_NO_OPENGL and QT_OPENGL_ES_2

#if !defined(QT_NO_OPENGL) && !defined(QT_OPENGL_ES_2)
#if !defined(QT_NO_OPENGL)

#include <QOpenGLFunctions>

Expand All @@ -13,4 +13,4 @@ class GLWaveformRenderer : protected QOpenGLFunctions {
}
};

#endif // !defined(QT_NO_OPENGL) && !defined(QT_OPENGL_ES_2)
#endif // !defined(QT_NO_OPENGL)

0 comments on commit 9b53d02

Please sign in to comment.