Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5e7ef948 authored by Chris Craik's avatar Chris Craik Committed by Gerrit Code Review
Browse files

Merge "hwui: fix possible null pointer de-refrence"

parents cb634bda 1fa4cef3
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -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()) {