summaryrefslogtreecommitdiff
path: root/src/mbgl/gl/offscreen_texture.hpp
diff options
context:
space:
mode:
authorKonstantin Käfer <mail@kkaefer.com>2019-04-03 14:18:54 +0200
committerKonstantin Käfer <mail@kkaefer.com>2019-04-05 11:49:17 +0200
commitb1a2513b61761d09b3ae08904c03d28caedd09fe (patch)
tree132c95888496aeb8493deeedd4897bd7639d292f /src/mbgl/gl/offscreen_texture.hpp
parent7081d5e154e208322b95f8efab74ec6e014a263d (diff)
downloadqtlocation-mapboxgl-b1a2513b61761d09b3ae08904c03d28caedd09fe.tar.gz
[core] test OffscreenTexture renderability before using them
Diffstat (limited to 'src/mbgl/gl/offscreen_texture.hpp')
-rw-r--r--src/mbgl/gl/offscreen_texture.hpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mbgl/gl/offscreen_texture.hpp b/src/mbgl/gl/offscreen_texture.hpp
index 5b211df505..07da4f57e2 100644
--- a/src/mbgl/gl/offscreen_texture.hpp
+++ b/src/mbgl/gl/offscreen_texture.hpp
@@ -18,6 +18,8 @@ public:
gfx::Renderbuffer<gfx::RenderbufferPixelType::Depth>&,
gfx::TextureChannelDataType type = gfx::TextureChannelDataType::UnsignedByte);
+ bool isRenderable() override;
+
PremultipliedImage readStillImage() override;
gfx::Texture& getTexture() override;
};