diff options
author | Konstantin Käfer <mail@kkaefer.com> | 2019-04-01 13:48:20 +0200 |
---|---|---|
committer | Konstantin Käfer <mail@kkaefer.com> | 2019-04-05 11:49:17 +0200 |
commit | 865f8a6c03540e329ed6caef354799fb58b7ab6e (patch) | |
tree | 8c748a0ef16dc88ed0ceeadea71f20bfd99cdf96 /test | |
parent | ebd850803278a6ffbca0bc8a5b96d415b239aeb8 (diff) | |
download | qtlocation-mapboxgl-865f8a6c03540e329ed6caef354799fb58b7ab6e.tar.gz |
[core] add gfx::Renderable and gfx::OffscreenTexture
Diffstat (limited to 'test')
-rw-r--r-- | test/util/offscreen_texture.test.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
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 <mbgl/gl/context.hpp> #include <mbgl/gl/texture.hpp> #include <mbgl/gl/defines.hpp> +#include <mbgl/gl/renderable_resource.hpp> #include <mbgl/gl/headless_backend.hpp> #include <mbgl/renderer/backend_scope.hpp> +#include <mbgl/gl/offscreen_texture.hpp> -#include <mbgl/util/offscreen_texture.hpp> 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<gl::RenderableResource>().bind(); context.clear(Color(), {}, {}); |