[Impeller] Change the default color format for the GLES backend to RGBA (flutter/engine#41342)

This provides compatibility with BlitCopyTextureToBufferCommandGLES::Encode and glReadPixels (which only guarantees support for RGBA).
This commit is contained in:
Jason Simmons
2023-04-20 08:40:22 -07:00
committed by GitHub
parent da6f9f69f2
commit 8e87882fec

View File

@@ -69,7 +69,7 @@ ContextGLES::ContextGLES(std::unique_ptr<ProcTableGLES> gl,
.SetSupportsTextureToTextureBlits(
reactor_->GetProcTable().BlitFramebuffer.IsAvailable())
.SetSupportsFramebufferFetch(false)
.SetDefaultColorFormat(PixelFormat::kB8G8R8A8UNormInt)
.SetDefaultColorFormat(PixelFormat::kR8G8B8A8UNormInt)
.SetDefaultStencilFormat(PixelFormat::kS8UInt)
.SetSupportsCompute(false, false)
.SetSupportsReadFromResolve(false)