diff options
author | Konstantin Käfer <mail@kkaefer.com> | 2019-03-20 10:34:02 +0100 |
---|---|---|
committer | Konstantin Käfer <mail@kkaefer.com> | 2019-03-20 15:40:47 +0100 |
commit | f86cc81680dd64f135f4f7b813c6cbb1e7e822d8 (patch) | |
tree | 566f8bb9180d43999d3b2a6a1df535e93994baf4 /src/mbgl/gfx | |
parent | 1e30fdac36233c0fd0662e2b285b0424907bc81d (diff) | |
download | qtlocation-mapboxgl-f86cc81680dd64f135f4f7b813c6cbb1e7e822d8.tar.gz |
[core] move cleanup to gfx::Context
Diffstat (limited to 'src/mbgl/gfx')
-rw-r--r-- | src/mbgl/gfx/context.hpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mbgl/gfx/context.hpp b/src/mbgl/gfx/context.hpp index 3653eeebe1..ff84cf34e8 100644 --- a/src/mbgl/gfx/context.hpp +++ b/src/mbgl/gfx/context.hpp @@ -34,6 +34,10 @@ public: virtual ~Context() = default; public: + // Called at the end of a frame. + virtual void performCleanup() = 0; + +public: template <class Vertex> VertexBuffer<Vertex> createVertexBuffer(VertexVector<Vertex>&& v, |