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:
parent
4750fa55f2
commit
ddd40e5e96
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user