aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/Test.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/Test.cpp')
-rw-r--r--tests/Test.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/Test.cpp b/tests/Test.cpp
index d91eeedb8f..1c3b691261 100644
--- a/tests/Test.cpp
+++ b/tests/Test.cpp
@@ -89,6 +89,9 @@ GrContext* GpuTest::GetContext() {
gGrContext.reset(GrContext::Create(kOpenGL_Shaders_GrEngine, ctx));
}
}
+ if (gGLContext.get()) {
+ gGLContext.get()->makeCurrent();
+ }
return gGrContext.get();
}