summaryrefslogtreecommitdiff
path: root/include/mbgl/platform
diff options
context:
space:
mode:
Diffstat (limited to 'include/mbgl/platform')
-rw-r--r--include/mbgl/platform/default/headless_backend.hpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/mbgl/platform/default/headless_backend.hpp b/include/mbgl/platform/default/headless_backend.hpp
index 2f4886a365..b6c654943f 100644
--- a/include/mbgl/platform/default/headless_backend.hpp
+++ b/include/mbgl/platform/default/headless_backend.hpp
@@ -12,6 +12,8 @@ typedef struct __GLXcontextRec* GLXContext;
typedef struct __GLXFBConfigRec* GLXFBConfig;
typedef long unsigned int XID;
typedef XID GLXPbuffer;
+#elif MBGL_USE_OSMESA
+#include <GL/osmesa.h>
#endif
#include <mbgl/map/backend.hpp>
@@ -71,6 +73,11 @@ private:
GLXPbuffer glxPbuffer = 0;
#endif
+#if MBGL_USE_OSMESA
+ OSMesaContext glContext = nullptr;
+ GLubyte fakeBuffer = 0;
+#endif
+
std::function<void(MapChange)> mapChangeCallback;
};