[Impeller] Make 'SurfaceGLES::WrapFBO' pass attachment validation (flutter/engine#35881)

This commit is contained in:
ColdPaleLight
2022-09-02 19:39:21 +08:00
committed by GitHub
parent 5af57a6565
commit 9bdfeec7be

View File

@@ -30,6 +30,7 @@ std::unique_ptr<Surface> SurfaceGLES::WrapFBO(std::shared_ptr<Context> context,
color0_tex.size = fbo_size;
color0_tex.usage = static_cast<TextureUsageMask>(TextureUsage::kRenderTarget);
color0_tex.sample_count = SampleCount::kCount1;
color0_tex.storage_mode = StorageMode::kDevicePrivate;
ColorAttachment color0;
color0.texture = std::make_shared<TextureGLES>(