From cd169207cb3951c00d3ee497b19497534dff4ab3 Mon Sep 17 00:00:00 2001 From: John Firebaugh Date: Mon, 24 Jul 2017 17:35:26 -0700 Subject: [core] OffscreenTexture does not need to implement View It's not used in a polymorphic context, and doesn't need to be. --- src/mbgl/util/offscreen_texture.hpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/mbgl/util/offscreen_texture.hpp b/src/mbgl/util/offscreen_texture.hpp index c265700555..0353f3f9c5 100644 --- a/src/mbgl/util/offscreen_texture.hpp +++ b/src/mbgl/util/offscreen_texture.hpp @@ -1,6 +1,5 @@ #pragma once -#include #include namespace mbgl { @@ -15,16 +14,16 @@ enum class OffscreenTextureAttachment { Depth, }; -class OffscreenTexture : public View { +class OffscreenTexture { public: OffscreenTexture(gl::Context&, Size size = { 256, 256 }, OffscreenTextureAttachment type = OffscreenTextureAttachment::None); - ~OffscreenTexture() override; + ~OffscreenTexture(); OffscreenTexture(OffscreenTexture&&); OffscreenTexture& operator=(OffscreenTexture&&); - void bind() override; + void bind(); PremultipliedImage readStillImage(); -- cgit v1.2.1