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