mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
[Impeller] dont create mipmap when mipcount == 1 (flutter/engine#39950)
[Impeller] dont create mipmap when mipcount == 1
This commit is contained in:
parent
c55ce6d9be
commit
833a31300a
@ -248,7 +248,7 @@ sk_sp<DlImage> ImageDecoderImpeller::UploadTexture(
|
||||
|
||||
texture->SetLabel(impeller::SPrintF("ui.Image(%p)", texture.get()).c_str());
|
||||
|
||||
{
|
||||
if (texture_descriptor.mip_count > 1u) {
|
||||
auto command_buffer = context->CreateCommandBuffer();
|
||||
if (!command_buffer) {
|
||||
FML_DLOG(ERROR)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user