summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorThiago Marcos P. Santos <thiago@mapbox.com>2016-04-28 16:03:45 +0300
committerThiago Marcos P. Santos <thiago@mapbox.com>2016-04-28 16:15:07 +0300
commit94093493d5b8ef688847fca71db98edac65534b6 (patch)
treeaa1af16fa087a6635e31cfdfe4f22c511cec97f9 /include
parent72f351c153391cc655cefcbab234183d5d1fef10 (diff)
downloadqtlocation-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.hpp4
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