summaryrefslogtreecommitdiffstats
path: root/libs/hwui/renderthread
diff options
context:
space:
mode:
Diffstat (limited to 'libs/hwui/renderthread')
-rw-r--r--libs/hwui/renderthread/CanvasContext.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/libs/hwui/renderthread/CanvasContext.cpp b/libs/hwui/renderthread/CanvasContext.cpp
index 25b13c1..ee629c0 100644
--- a/libs/hwui/renderthread/CanvasContext.cpp
+++ b/libs/hwui/renderthread/CanvasContext.cpp
@@ -60,8 +60,6 @@ CanvasContext::~CanvasContext() {
void CanvasContext::destroy() {
stopDrawing();
- setSurface(NULL);
- mEglManager.usePBufferSurface();
freePrefetechedLayers();
destroyHardwareResources();
mAnimationContext->destroy();
@@ -69,6 +67,7 @@ void CanvasContext::destroy() {
delete mCanvas;
mCanvas = 0;
}
+ setSurface(NULL);
}
void CanvasContext::setSurface(ANativeWindow* window) {