diff options
author | Konstantin Käfer <mail@kkaefer.com> | 2019-04-03 14:18:54 +0200 |
---|---|---|
committer | Konstantin Käfer <mail@kkaefer.com> | 2019-04-05 11:49:17 +0200 |
commit | b1a2513b61761d09b3ae08904c03d28caedd09fe (patch) | |
tree | 132c95888496aeb8493deeedd4897bd7639d292f /src/mbgl/gfx | |
parent | 7081d5e154e208322b95f8efab74ec6e014a263d (diff) | |
download | qtlocation-mapboxgl-b1a2513b61761d09b3ae08904c03d28caedd09fe.tar.gz |
[core] test OffscreenTexture renderability before using them
Diffstat (limited to 'src/mbgl/gfx')
-rw-r--r-- | src/mbgl/gfx/offscreen_texture.hpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mbgl/gfx/offscreen_texture.hpp b/src/mbgl/gfx/offscreen_texture.hpp index 1eaf4557c6..5690ff7625 100644 --- a/src/mbgl/gfx/offscreen_texture.hpp +++ b/src/mbgl/gfx/offscreen_texture.hpp @@ -17,6 +17,8 @@ protected: public: virtual ~OffscreenTexture() = default; + virtual bool isRenderable() = 0; + virtual PremultipliedImage readStillImage() = 0; virtual gfx::Texture& getTexture() = 0; }; |