* commit '678886fde5cd779de79f8e38479aa6de82f8e755': hwui: fix possible null pointer de-refrence
This commit is contained in:
@@ -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()) {
|
||||
|
||||
Reference in New Issue
Block a user