summaryrefslogtreecommitdiff
path: root/platform/qt/mbgl/gl/gl_impl.hpp
blob: 5e4c6f12af72b616543a1842f8f708625a24ace1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#pragma once

#include <QtGlobal>

// Qt4
#if QT_VERSION < 0x050000
    #if MBGL_USE_GLES2
        #define GL_GLEXT_PROTOTYPES
        #include <GLES2/gl2.h>
        #include <GLES2/gl2ext.h>
    #else
        #define GL_GLEXT_PROTOTYPES
        #include <GL/gl.h>
        #include <GL/glext.h>
    #endif

// Qt5
#else
    #define GL_GLEXT_PROTOTYPES
    #include <QtGui/qopengl.h>
#endif