diff options
Diffstat (limited to 'src/mbgl/gl/offscreen_texture.cpp')
-rw-r--r-- | src/mbgl/gl/offscreen_texture.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mbgl/gl/offscreen_texture.cpp b/src/mbgl/gl/offscreen_texture.cpp index 0b06fedf46..5feef95edf 100644 --- a/src/mbgl/gl/offscreen_texture.cpp +++ b/src/mbgl/gl/offscreen_texture.cpp @@ -25,6 +25,7 @@ public: void bind() override { if (!framebuffer) { + assert(!texture); texture = context.createTexture(size, gfx::TexturePixelType::RGBA, type); if (depth) { framebuffer = context.createFramebuffer(*texture, *depth); |