diff options
author | bsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2012-11-29 17:27:37 +0000 |
---|---|---|
committer | bsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2012-11-29 17:27:37 +0000 |
commit | 83a853aa65c9f380dbaa9637d9be1d676d1991ed (patch) | |
tree | 43a08fb2e92bc5348091d344d3944f06f7d025e2 /tests/Test.cpp | |
parent | 91f489a65d436d36c7fe580af2775cd0cd13c8d2 (diff) |
Fix the gr/gl destruction order in Test.cpp
R=djsollen@google.com
Review URL: https://codereview.appspot.com/6851126
git-svn-id: http://skia.googlecode.com/svn/trunk@6602 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'tests/Test.cpp')
-rw-r--r-- | tests/Test.cpp | 4 |
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 } |