summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThiago Marcos P. Santos <thiago@mapbox.com>2017-02-13 18:24:38 +0200
committerThiago Marcos P. Santos <tmpsantos@gmail.com>2017-02-14 21:55:44 +0200
commitb822c9466be27e048ec39b31d58d0d0afdf437ff (patch)
tree81191eab1ca3f70d3d694abe643e55318cc31d78
parent94f011895c8e1bde36ee2ec235dbbcf2c994ac4c (diff)
downloadqtlocation-mapboxgl-b822c9466be27e048ec39b31d58d0d0afdf437ff.tar.gz
[glfw] Include gl.hpp first to avoid redefinition of GLAPIENTRY
Mesa does not check if GLAPIENTRY was defined before before defining it, what makes the compiler sad. So we make Mesa define it first, before GLFW.
-rw-r--r--platform/glfw/glfw_view.hpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/platform/glfw/glfw_view.hpp b/platform/glfw/glfw_view.hpp
index 84c8319594..835a73b54e 100644
--- a/platform/glfw/glfw_view.hpp
+++ b/platform/glfw/glfw_view.hpp
@@ -1,5 +1,6 @@
#pragma once
+#include <mbgl/gl/gl.hpp>
#include <mbgl/map/map.hpp>
#include <mbgl/map/view.hpp>
#include <mbgl/map/backend.hpp>