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