Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit a8c516d

Browse files
[Impeller] Change the default color format for the GLES backend to RGBA (#41342)
This provides compatibility with BlitCopyTextureToBufferCommandGLES::Encode and glReadPixels (which only guarantees support for RGBA).
1 parent 1a25b7a commit a8c516d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

impeller/renderer/backend/gles/context_gles.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ ContextGLES::ContextGLES(std::unique_ptr<ProcTableGLES> gl,
6969
.SetSupportsTextureToTextureBlits(
7070
reactor_->GetProcTable().BlitFramebuffer.IsAvailable())
7171
.SetSupportsFramebufferFetch(false)
72-
.SetDefaultColorFormat(PixelFormat::kB8G8R8A8UNormInt)
72+
.SetDefaultColorFormat(PixelFormat::kR8G8B8A8UNormInt)
7373
.SetDefaultStencilFormat(PixelFormat::kS8UInt)
7474
.SetSupportsCompute(false, false)
7575
.SetSupportsReadFromResolve(false)

0 commit comments

Comments
 (0)