forked from firka/flutter
[Impeller] dont create mipmap when mipcount == 1 (flutter/engine#39950)
[Impeller] dont create mipmap when mipcount == 1
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user