[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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user