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

Commit 11a8d4f8 authored by Chris Craik's avatar Chris Craik Committed by Android Git Automerger
Browse files

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

* commit '678886fd':
  hwui: fix possible null pointer de-refrence
parents 658639c6 678886fd
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -334,8 +334,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()) {