mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
[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:
parent
da6f9f69f2
commit
8e87882fec
@ -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)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user