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

Commit 678886fd authored by Chris Craik's avatar Chris Craik Committed by Android Git Automerger
Browse files

am b1fc06a4: am 5e7ef948: Merge "hwui: fix possible null pointer de-refrence"

* commit 'b1fc06a4':
  hwui: fix possible null pointer de-refrence
parents 9dad7d44 b1fc06a4
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()) {