From 865f8a6c03540e329ed6caef354799fb58b7ab6e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Konstantin=20K=C3=A4fer?= Date: Mon, 1 Apr 2019 13:48:20 +0200 Subject: [core] add gfx::Renderable and gfx::OffscreenTexture --- test/util/offscreen_texture.test.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'test') diff --git a/test/util/offscreen_texture.test.cpp b/test/util/offscreen_texture.test.cpp index 0f24c1e9af..887a1cdc00 100644 --- a/test/util/offscreen_texture.test.cpp +++ b/test/util/offscreen_texture.test.cpp @@ -4,10 +4,11 @@ #include #include #include +#include #include #include +#include -#include using namespace mbgl; using namespace mbgl::platform; @@ -132,13 +133,13 @@ void main() { // Then, create a texture, bind it, and render yellow to that texture. This should not // affect the originally bound FBO. - OffscreenTexture texture(context, { 128, 128 }); + gl::OffscreenTexture texture(context, { 128, 128 }); // Scissor test shouldn't leak after OffscreenTexture::bind(). MBGL_CHECK_ERROR(glScissor(32, 32, 64, 64)); context.scissorTest.setCurrentValue(true); - texture.bind(); + texture.getResource().bind(); context.clear(Color(), {}, {}); -- cgit v1.2.1