summaryrefslogtreecommitdiff
path: root/test/gl/context.test.cpp
diff options
context:
space:
mode:
authorKonstantin Käfer <mail@kkaefer.com>2019-04-01 15:57:44 +0200
committerKonstantin Käfer <mail@kkaefer.com>2019-04-05 11:49:17 +0200
commita782a6d15b80dd83105604f3f779f6c83ba222e5 (patch)
tree62d83196baf28554cdd3144691b8210cc998af4a /test/gl/context.test.cpp
parent865f8a6c03540e329ed6caef354799fb58b7ab6e (diff)
downloadqtlocation-mapboxgl-a782a6d15b80dd83105604f3f779f6c83ba222e5.tar.gz
[core] move BackendScope to gfx namespace
Diffstat (limited to 'test/gl/context.test.cpp')
-rw-r--r--test/gl/context.test.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/gl/context.test.cpp b/test/gl/context.test.cpp
index 291813bd9a..14f7cd3a13 100644
--- a/test/gl/context.test.cpp
+++ b/test/gl/context.test.cpp
@@ -5,6 +5,7 @@
#include <mbgl/map/map.hpp>
#include <mbgl/map/map_options.hpp>
#include <mbgl/util/default_thread_pool.hpp>
+#include <mbgl/gfx/backend_scope.hpp>
#include <mbgl/gl/defines.hpp>
#include <mbgl/gl/headless_frontend.hpp>
#include <mbgl/storage/resource_options.hpp>
@@ -103,8 +104,8 @@ TEST(GLContextMode, Shared) {
{
// Custom rendering outside of GL Native render loop.
- BackendScope scope { *frontend.getBackend() };
frontend.getBackend()->bind();
+ gfx::BackendScope scope { *frontend.getBackend() };
Shader paintShader(vertexShaderSource, fragmentShaderSource);
Buffer triangleBuffer({ 0, 0.5, 0.5, -0.5, -0.5, -0.5 });