~mterry/qtmir/warn-on-xapp

« back to all changes in this revision

Viewing changes to src/platforms/mirserver/miropenglcontext.h

  • Committer: Daniel d'Andrada
  • Date: 2016-03-24 14:07:40 UTC
  • mto: (422.30.30 inline-gles-surface)
  • mto: This revision was merged to the branch mainline in revision 428.
  • Revision ID: daniel.dandrada@canonical.com-20160324140740-vx0jti380s7pyqut
Logging of Qt's OpenGL debug messages now must be enabled via CMake option

Show diffs side-by-side

added added

removed removed

Lines of Context:
19
19
 
20
20
#include <qpa/qplatformopenglcontext.h>
21
21
 
22
 
#ifndef QT_NO_DEBUG
 
22
#ifdef QGL_DEBUG
23
23
#include <QOpenGLDebugLogger>
24
24
#endif
25
25
 
44
44
 
45
45
    QFunctionPointer getProcAddress(const QByteArray &procName) override;
46
46
 
47
 
#ifndef QT_NO_DEBUG
 
47
#ifdef QGL_DEBUG
48
48
    Q_SLOT void onGlDebugMessageLogged(QOpenGLDebugMessage m) { qDebug() << m; }
49
49
#endif
50
50
 
51
51
private:
52
52
    QSurfaceFormat m_format;
53
53
    ScreenWindow *m_currentWindow;
54
 
#ifndef QT_NO_DEBUG
 
54
#ifdef QGL_DEBUG
55
55
    QOpenGLDebugLogger *m_logger;
56
56
#endif
57
57
};