diff options
author | Thiago Marcos P. Santos <thiago@mapbox.com> | 2017-02-13 18:24:38 +0200 |
---|---|---|
committer | Thiago Marcos P. Santos <tmpsantos@gmail.com> | 2017-02-14 21:55:44 +0200 |
commit | b822c9466be27e048ec39b31d58d0d0afdf437ff (patch) | |
tree | 81191eab1ca3f70d3d694abe643e55318cc31d78 /platform/glfw | |
parent | 94f011895c8e1bde36ee2ec235dbbcf2c994ac4c (diff) | |
download | qtlocation-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.
Diffstat (limited to 'platform/glfw')
-rw-r--r-- | platform/glfw/glfw_view.hpp | 1 |
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> |