diff options
Diffstat (limited to 'platform')
-rw-r--r-- | platform/glfw/glfw_view.cpp | 7 | ||||
-rw-r--r-- | platform/glfw/glfw_view.hpp | 6 |
2 files changed, 8 insertions, 5 deletions
diff --git a/platform/glfw/glfw_view.cpp b/platform/glfw/glfw_view.cpp index 26c946ed76..31b0b92c58 100644 --- a/platform/glfw/glfw_view.cpp +++ b/platform/glfw/glfw_view.cpp @@ -10,6 +10,13 @@ #include <mbgl/map/backend_scope.hpp> #include <mbgl/map/camera.hpp> +#if MBGL_USE_GLES2 +#define GLFW_INCLUDE_ES2 +#endif // MBGL_USE_GLES2 + +#define GL_GLEXT_PROTOTYPES +#include <GLFW/glfw3.h> + #include <cassert> #include <cstdlib> diff --git a/platform/glfw/glfw_view.hpp b/platform/glfw/glfw_view.hpp index 09b8847ff2..77f4f64b01 100644 --- a/platform/glfw/glfw_view.hpp +++ b/platform/glfw/glfw_view.hpp @@ -7,11 +7,7 @@ #include <mbgl/util/timer.hpp> #include <mbgl/util/geometry.hpp> -#if MBGL_USE_GLES2 -#define GLFW_INCLUDE_ES2 -#endif -#define GL_GLEXT_PROTOTYPES -#include <GLFW/glfw3.h> +struct GLFWwindow; class GLFWView : public mbgl::View, public mbgl::Backend { public: |