summaryrefslogtreecommitdiff
path: root/test/util
diff options
context:
space:
mode:
authorKonstantin Käfer <mail@kkaefer.com>2019-04-02 22:47:24 +0200
committerKonstantin Käfer <mail@kkaefer.com>2019-04-05 11:49:17 +0200
commitebd850803278a6ffbca0bc8a5b96d415b239aeb8 (patch)
tree3ff807a5fa1bde413120997e00fcab68044544f6 /test/util
parentc02010ab6c8958f6897921c82cf47411de759269 (diff)
downloadqtlocation-mapboxgl-ebd850803278a6ffbca0bc8a5b96d415b239aeb8.tar.gz
[core] add getResource template to gfx::*Resource classes
Diffstat (limited to 'test/util')
-rw-r--r--test/util/offscreen_texture.test.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/util/offscreen_texture.test.cpp b/test/util/offscreen_texture.test.cpp
index 986ec39bc1..0f24c1e9af 100644
--- a/test/util/offscreen_texture.test.cpp
+++ b/test/util/offscreen_texture.test.cpp
@@ -159,7 +159,7 @@ void main() {
test::checkImage("test/fixtures/offscreen_texture/render-to-fbo", image, 0, 0);
// Now, composite the Framebuffer texture we've rendered to onto the main FBO.
- gl::bindTexture(context, 0, { *texture.getTexture().resource, gfx::TextureFilterType::Linear });
+ gl::bindTexture(context, 0, { texture.getTexture().getResource(), gfx::TextureFilterType::Linear });
MBGL_CHECK_ERROR(glUseProgram(compositeShader.program));
MBGL_CHECK_ERROR(glUniform1i(u_texture, 0));
MBGL_CHECK_ERROR(glBindBuffer(GL_ARRAY_BUFFER, viewportBuffer.buffer));