Tear down Gr stuff before GL context in SampleApp

Review URL: http://codereview.appspot.com/6000043/



git-svn-id: http://skia.googlecode.com/svn/trunk@3639 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
bsalomon@google.com 2012-04-10 15:56:29 +00:00
parent 4750fa55f2
commit ddd40e5e96

View File

@ -224,8 +224,6 @@ public:
}
virtual void tearDownBackend(SampleWindow *win) {
win->detach();
fBackend = kNone_BackEndType;
SkSafeUnref(fCurContext);
fCurContext = NULL;
@ -235,6 +233,9 @@ public:
SkSafeUnref(fCurRenderTarget);
fCurRenderTarget = NULL;
win->detach();
fBackend = kNone_BackEndType;
}
virtual bool prepareCanvas(SampleWindow::DeviceType dType,