diff options
author | Ivo van Dongen <info@ivovandongen.nl> | 2017-09-15 18:03:04 +0300 |
---|---|---|
committer | Ivo van Dongen <ivovandongen@users.noreply.github.com> | 2017-09-22 23:33:56 +0300 |
commit | bda6ed26c65b541b0633fcdf824f2baef30aa0cc (patch) | |
tree | 22f4e3ca1356d5f92bfcc79c8d359925eac1897d /include | |
parent | 67285f3a95f74966324fc59f271ba8b6b763b2b5 (diff) | |
download | qtlocation-mapboxgl-bda6ed26c65b541b0633fcdf824f2baef30aa0cc.tar.gz |
[core] send signal to RenderCustomLayer when gl context has been lost
- Prevents cleaning up of GL resources that no longer exist, resulting in a crash
Diffstat (limited to 'include')
-rw-r--r-- | include/mbgl/renderer/renderer.hpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/mbgl/renderer/renderer.hpp b/include/mbgl/renderer/renderer.hpp index 95828a1b79..be8abb2c29 100644 --- a/include/mbgl/renderer/renderer.hpp +++ b/include/mbgl/renderer/renderer.hpp @@ -28,6 +28,8 @@ public: const optional<std::string> programCacheDir = {}); ~Renderer(); + void markContextLost(); + void setObserver(RendererObserver*); void render(const UpdateParameters&); |