diff options
author | Thiago Marcos P. Santos <tmpsantos@gmail.com> | 2019-02-08 15:45:05 +0200 |
---|---|---|
committer | Thiago Marcos P. Santos <tmpsantos@gmail.com> | 2019-02-12 19:42:08 +0200 |
commit | 690833ef9212756cbdd1945e2f447f22cc05816e (patch) | |
tree | 4dca89518c6b54c60c669aacd8fbff9c15801418 /src/mbgl/renderer | |
parent | 470b01847db1046bbae872f932b0e83ebf3af5f8 (diff) | |
download | qtlocation-mapboxgl-690833ef9212756cbdd1945e2f447f22cc05816e.tar.gz |
[core] Switch to the new OpenGL abstraction
This patch will make Mapbox GL Core never use OpenGL
directly. We should consider locking into OpenGL ES 2.0
to simplify the code path and remove #ifdefs.
Diffstat (limited to 'src/mbgl/renderer')
-rw-r--r-- | src/mbgl/renderer/layers/render_custom_layer.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mbgl/renderer/layers/render_custom_layer.cpp b/src/mbgl/renderer/layers/render_custom_layer.cpp index 9e65830faf..22c1b4c5d2 100644 --- a/src/mbgl/renderer/layers/render_custom_layer.cpp +++ b/src/mbgl/renderer/layers/render_custom_layer.cpp @@ -3,9 +3,9 @@ #include <mbgl/renderer/backend_scope.hpp> #include <mbgl/renderer/renderer_backend.hpp> #include <mbgl/renderer/bucket.hpp> +#include <mbgl/platform/gl_functions.hpp> #include <mbgl/style/layers/custom_layer_impl.hpp> #include <mbgl/map/transform_state.hpp> -#include <mbgl/gl/gl.hpp> #include <mbgl/util/mat4.hpp> namespace mbgl { @@ -15,7 +15,7 @@ using namespace style; RenderCustomLayer::RenderCustomLayer(Immutable<style::CustomLayer::Impl> _impl) : RenderLayer(std::move(_impl)), host(impl().host) { assert(BackendScope::exists()); - host->initialize(); + MBGL_CHECK_ERROR(host->initialize()); } RenderCustomLayer::~RenderCustomLayer() { @@ -23,7 +23,7 @@ RenderCustomLayer::~RenderCustomLayer() { if (contextDestroyed) { host->contextLost(); } else { - host->deinitialize(); + MBGL_CHECK_ERROR(host->deinitialize()); } } |