am 76de8982: Merge "Prevent calling GL functions with an invalid surface" into lmp-mr1-dev
* commit '76de89820c51c4bc288b440a82374b9d6c806244': Prevent calling GL functions with an invalid surface
This commit is contained in:
@@ -60,6 +60,7 @@ CanvasContext::~CanvasContext() {
|
|||||||
|
|
||||||
void CanvasContext::destroy() {
|
void CanvasContext::destroy() {
|
||||||
stopDrawing();
|
stopDrawing();
|
||||||
|
setSurface(NULL);
|
||||||
freePrefetechedLayers();
|
freePrefetechedLayers();
|
||||||
destroyHardwareResources();
|
destroyHardwareResources();
|
||||||
mAnimationContext->destroy();
|
mAnimationContext->destroy();
|
||||||
@@ -67,7 +68,6 @@ void CanvasContext::destroy() {
|
|||||||
delete mCanvas;
|
delete mCanvas;
|
||||||
mCanvas = 0;
|
mCanvas = 0;
|
||||||
}
|
}
|
||||||
setSurface(NULL);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void CanvasContext::setSurface(ANativeWindow* window) {
|
void CanvasContext::setSurface(ANativeWindow* window) {
|
||||||
|
|||||||
Reference in New Issue
Block a user