mirror of
https://github.com/tumic0/GPXSee.git
synced 2025-02-07 12:05:14 +01:00
Fixed OS X build
This commit is contained in:
parent
004e9bfef3
commit
aa928d96e0
@ -1,5 +1,5 @@
|
|||||||
#include <QtGlobal>
|
#include <QtGlobal>
|
||||||
#if QT_VERSION < QT_VERSION_CHECK(5, 4, 0) || defined(Q_OS_MAC)
|
#if QT_VERSION < QT_VERSION_CHECK(5, 4, 0)
|
||||||
#include <QGLWidget>
|
#include <QGLWidget>
|
||||||
#include <QGLFormat>
|
#include <QGLFormat>
|
||||||
#else
|
#else
|
||||||
@ -7,13 +7,13 @@
|
|||||||
#include <QSurfaceFormat>
|
#include <QSurfaceFormat>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if QT_VERSION < QT_VERSION_CHECK(5, 4, 0) || defined(Q_OS_MAC)
|
#if QT_VERSION < QT_VERSION_CHECK(5, 4, 0)
|
||||||
#define OPENGL_WIDGET QGLWidget
|
#define OPENGL_WIDGET QGLWidget
|
||||||
#else
|
#else
|
||||||
#define OPENGL_WIDGET QOpenGLWidget
|
#define OPENGL_WIDGET QOpenGLWidget
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if QT_VERSION < QT_VERSION_CHECK(5, 4, 0) || defined(Q_OS_MAC)
|
#if QT_VERSION < QT_VERSION_CHECK(5, 4, 0)
|
||||||
#define OPENGL_SET_SAMPLES(samples) \
|
#define OPENGL_SET_SAMPLES(samples) \
|
||||||
{QGLFormat fmt; \
|
{QGLFormat fmt; \
|
||||||
fmt.setSamples(samples); \
|
fmt.setSamples(samples); \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user