[Impeller] Fix Metal validation failures on CanRenderTiledTexture/Metal (flutter/engine#35449)

This commit is contained in:
ColdPaleLight
2022-08-17 13:58:04 +08:00
committed by GitHub
parent 696e08c9fd
commit 05198bef39

View File

@@ -93,7 +93,8 @@ TEST_P(AiksTest, CanRenderTiledTexture) {
auto context = GetContext();
ASSERT_TRUE(context);
bool first_frame = true;
auto texture = CreateTextureForFixture("table_mountain_nx.png");
auto texture = CreateTextureForFixture("table_mountain_nx.png",
/*enable_mipmapping=*/true);
auto callback = [&](AiksContext& renderer, RenderTarget& render_target) {
if (first_frame) {
first_frame = false;