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
This commit is contained in:
parent
91f489a65d
commit
83a853aa65
@ -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
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user