diff options
author | Thiago Marcos P. Santos <thiago@mapbox.com> | 2016-04-28 16:03:45 +0300 |
---|---|---|
committer | Thiago Marcos P. Santos <thiago@mapbox.com> | 2016-04-28 16:15:07 +0300 |
commit | 94093493d5b8ef688847fca71db98edac65534b6 (patch) | |
tree | aa1af16fa087a6635e31cfdfe4f22c511cec97f9 /include | |
parent | 72f351c153391cc655cefcbab234183d5d1fef10 (diff) | |
download | qtlocation-mapboxgl-94093493d5b8ef688847fca71db98edac65534b6.tar.gz |
[glfw] Atomic is no longer needed
All View events come from the same thread.
Diffstat (limited to 'include')
-rw-r--r-- | include/mbgl/platform/default/glfw_view.hpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/include/mbgl/platform/default/glfw_view.hpp b/include/mbgl/platform/default/glfw_view.hpp index 74a545d31b..3b74618e3e 100644 --- a/include/mbgl/platform/default/glfw_view.hpp +++ b/include/mbgl/platform/default/glfw_view.hpp @@ -11,8 +11,6 @@ #define GL_GLEXT_PROTOTYPES #include <GLFW/glfw3.h> -#include <atomic> - class GLFWView : public mbgl::View { public: GLFWView(bool fullscreen = false, bool benchmark = false); @@ -95,7 +93,7 @@ private: mbgl::util::Timer frameTick; GLFWwindow *window = nullptr; - std::atomic_flag clean = ATOMIC_FLAG_INIT; + bool dirty = false; }; #endif |