diff options
Diffstat (limited to 'src/platforms/mirserver/miropenglcontext.h')
-rw-r--r-- | src/platforms/mirserver/miropenglcontext.h | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/platforms/mirserver/miropenglcontext.h b/src/platforms/mirserver/miropenglcontext.h index de3ec9c..c1d6274 100644 --- a/src/platforms/mirserver/miropenglcontext.h +++ b/src/platforms/mirserver/miropenglcontext.h @@ -21,9 +21,7 @@ #include <qpa/qplatformopenglcontext.h> -#define GL_DEBUG (QT_VERSION >= QT_VERSION_CHECK(5, 2, 0) && !defined(QT_NO_DEBUG)) - -#if GL_DEBUG +#ifndef QT_NO_DEBUG #include <QOpenGLDebugLogger> #endif @@ -46,14 +44,13 @@ public: QFunctionPointer getProcAddress(const QByteArray &procName) override; -// "#if GL_DEBUG" does not work as MOC does not understand #define -#if (QT_VERSION >= QT_VERSION_CHECK(5, 2, 0) && !defined(QT_NO_DEBUG)) +#ifndef QT_NO_DEBUG Q_SLOT void onGlDebugMessageLogged(QOpenGLDebugMessage m) { qDebug() << m; } #endif private: QSurfaceFormat m_format; -#if GL_DEBUG +#ifndef QT_NO_DEBUG QOpenGLDebugLogger *m_logger; #endif }; |