Skip to content

Commit a27d2f2

Browse files
authored
Check needs_painting in RasterCache::Prepare (#6708)
Otherwise, this may trigger `FML_DCHECK(needs_painting())`. We haven't caused crashes for our users because it probably requires a locally debug engine build to trigger the assert.
1 parent 552fae6 commit a27d2f2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

flow/raster_cache.cc

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,9 @@ void RasterCache::Prepare(PrerollContext* context,
164164
context->texture_registry,
165165
context->raster_cache,
166166
context->checkerboard_offscreen_layers};
167-
layer->Paint(paintContext);
167+
if (layer->needs_painting()) {
168+
layer->Paint(paintContext);
169+
}
168170
});
169171
}
170172
}

0 commit comments

Comments
 (0)