Index: samplecode/SampleApp.cpp |
diff --git a/samplecode/SampleApp.cpp b/samplecode/SampleApp.cpp |
index 6d5f647b158cee1df0baa5f8138a1afba6845474..72122234d9151d1d207f34d6a388467b163202b5 100644 |
--- a/samplecode/SampleApp.cpp |
+++ b/samplecode/SampleApp.cpp |
@@ -261,7 +261,7 @@ public: |
fCurIntf = nullptr; |
SkDebugf("Failed to setup 3D"); |
- win->detach(); |
+ win->release(); |
} |
#endif // SK_SUPPORT_GPU |
// call windowSizeChanged to create the render target |
@@ -283,7 +283,7 @@ public: |
SkSafeUnref(fCurRenderTarget); |
fCurRenderTarget = nullptr; |
#endif |
- win->detach(); |
+ win->release(); |
fBackend = kNone_BackEndType; |
} |