aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/Test.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/Test.cpp')
-rw-r--r--tests/Test.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/Test.cpp b/tests/Test.cpp
index bebb351253..6953d9435d 100644
--- a/tests/Test.cpp
+++ b/tests/Test.cpp
@@ -90,9 +90,9 @@ bool Test::run() {
void GpuTest::DestroyContext() {
#if SK_SUPPORT_GPU
- // preserve this order, we want gGrContext destroyed after gEGLContext
- gGLContext.reset(NULL);
+ // preserve this order, we want gGrContext destroyed before gGLContext
gGrContext.reset(NULL);
+ gGLContext.reset(NULL);
#endif
}