summaryrefslogtreecommitdiff
path: root/common/headless_view.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'common/headless_view.hpp')
-rw-r--r--common/headless_view.hpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/common/headless_view.hpp b/common/headless_view.hpp
index ec76f1a077..195364db6e 100644
--- a/common/headless_view.hpp
+++ b/common/headless_view.hpp
@@ -4,6 +4,7 @@
#ifdef __APPLE__
#define MBGL_USE_CGL 1
#else
+#define GL_GLEXT_PROTOTYPES
#include <GL/glx.h>
#define MBGL_USE_GLX 1
#endif
@@ -46,9 +47,6 @@ private:
#if MBGL_USE_CGL
CGLContextObj gl_context;
- GLuint fbo = 0;
- GLuint fbo_depth_stencil = 0;
- GLuint fbo_color = 0;
#endif
#if MBGL_USE_GLX
@@ -57,6 +55,10 @@ private:
GLXContext gl_context = nullptr;
GLXPbuffer glx_pbuffer = 0;
#endif
+
+ GLuint fbo = 0;
+ GLuint fbo_depth_stencil = 0;
+ GLuint fbo_color = 0;
};
}