From 83a853aa65c9f380dbaa9637d9be1d676d1991ed Mon Sep 17 00:00:00 2001 From: "bsalomon@google.com" Date: Thu, 29 Nov 2012 17:27:37 +0000 Subject: 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 --- tests/Test.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests/Test.cpp') 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 } -- cgit v1.2.3