summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorJulian Rex <julian.rex@mapbox.com>2018-03-28 18:59:38 -0400
committerJulian Rex <julian.rex@mapbox.com>2018-03-28 18:59:38 -0400
commit4e88894b91cb9d20a275e71c2f9c86842a475b73 (patch)
treee2fb9a5f75b8c3e317d2c9de5e4e22413c15241e /include
parent4fd1792865465c113dde1702f2213ab6b7aadebd (diff)
downloadqtlocation-mapboxgl-4e88894b91cb9d20a275e71c2f9c86842a475b73.tar.gz
Changed OpenGL retain management to use NSMutableSet.upstream/ahm-custom-layer-fix
Diffstat (limited to 'include')
-rw-r--r--include/mbgl/style/layers/custom_layer.hpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/include/mbgl/style/layers/custom_layer.hpp b/include/mbgl/style/layers/custom_layer.hpp
index 0eb2f27852..bf3387f95b 100644
--- a/include/mbgl/style/layers/custom_layer.hpp
+++ b/include/mbgl/style/layers/custom_layer.hpp
@@ -2,8 +2,6 @@
#include <mbgl/style/layer.hpp>
-#include <functional>
-
namespace mbgl {
namespace style {
@@ -46,7 +44,7 @@ using CustomLayerRenderFunction = void (*)(void* context, const CustomLayerRende
* `CustomLayerInitializeFunction` will be called instead to prepare for a new render.
*
*/
-using CustomLayerContextLostFunction = std::function<void(void*)>;
+using CustomLayerContextLostFunction = void (*)(void* context);
/**
* Destroy any GL state needed by the custom layer, and deallocate context, if necessary. This