* commit 'b1fc06a4321f13360fcca49bbf87f87f34c22d58': 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