mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
[Impeller] Do not skip the GLES render pass if the command list is empty (flutter/engine#50381)
The render pass may need to apply other changes such as painting the clear color. See https://github.com/flutter/flutter/issues/142639
This commit is contained in:
parent
dfd78684bd
commit
39a6ac669f
@ -151,10 +151,6 @@ struct RenderPassData {
|
||||
const std::shared_ptr<GPUTracerGLES>& tracer) {
|
||||
TRACE_EVENT0("impeller", "RenderPassGLES::EncodeCommandsInReactor");
|
||||
|
||||
if (commands.empty()) {
|
||||
return true;
|
||||
}
|
||||
|
||||
const auto& gl = reactor.GetProcTable();
|
||||
#ifdef IMPELLER_DEBUG
|
||||
tracer->MarkFrameStart(gl);
|
||||
@ -517,9 +513,6 @@ bool RenderPassGLES::OnEncodeCommands(const Context& context) const {
|
||||
if (!IsValid()) {
|
||||
return false;
|
||||
}
|
||||
if (commands_.empty()) {
|
||||
return true;
|
||||
}
|
||||
const auto& render_target = GetRenderTarget();
|
||||
if (!render_target.HasColorAttachment(0u)) {
|
||||
return false;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user