Merge "Fix null deref crash" into oc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
c1affe14c2
@@ -123,7 +123,7 @@ void RenderState::flush(Caches::FlushMode mode) {
|
||||
}
|
||||
|
||||
void RenderState::onBitmapDestroyed(uint32_t pixelRefId) {
|
||||
if (mCaches->textureCache.destroyTexture(pixelRefId)) {
|
||||
if (mCaches && mCaches->textureCache.destroyTexture(pixelRefId)) {
|
||||
glFlush();
|
||||
GL_CHECKPOINT(MODERATE);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user