am 5e7ef948: Merge "hwui: fix possible null pointer de-refrence"
* commit '5e7ef9489f3247c02395202d88fb4fb425aa8412': hwui: fix possible null pointer de-refrence
This commit is contained in:
@@ -339,8 +339,10 @@ void LayerRenderer::destroyLayerDeferred(Layer* layer) {
|
||||
|
||||
void LayerRenderer::flushLayer(Layer* layer) {
|
||||
#ifdef GL_EXT_discard_framebuffer
|
||||
if (!layer) return;
|
||||
|
||||
GLuint fbo = layer->getFbo();
|
||||
if (layer && fbo) {
|
||||
if (fbo) {
|
||||
// If possible, discard any enqueud operations on deferred
|
||||
// rendering architectures
|
||||
if (Extensions::getInstance().hasDiscardFramebuffer()) {
|
||||
|
||||
Reference in New Issue
Block a user