mirror of
https://gitlab.freedesktop.org/wayland/weston.git
synced 2025-12-30 08:30:13 +01:00
gl-renderer: Prefer GL_RGBA8 with swizzles over GL_BGRA8_EXT
All the formats are declared as RGBA swizzled variations. Make the BGRA8888 format do the same for consistency reasons as there shouldn't be any performance impact for it. Signed-off-by: Loïc Molinari <loic.molinari@collabora.com>
This commit is contained in:
parent
815ccaff92
commit
a990e8ceda
1 changed files with 2 additions and 2 deletions
|
|
@ -282,7 +282,7 @@ static const struct pixel_format_info pixel_format_table[] = {
|
|||
BITS_RGBA_FIXED(8, 8, 8, 0),
|
||||
.addfb_legacy_depth = 24,
|
||||
.bpp = 32,
|
||||
GL_FORMAT_INFO(GL_BGRA8_EXT, GL_BGRA_EXT, GL_UNSIGNED_BYTE, RGB1),
|
||||
GL_FORMAT_INFO(GL_RGBA8, GL_RGBA, GL_UNSIGNED_BYTE, BGR1),
|
||||
GL_INTERNALFORMAT(GL_RGB8),
|
||||
GL_FORMAT(GL_BGRA_EXT),
|
||||
GL_TYPE(GL_UNSIGNED_BYTE),
|
||||
|
|
@ -298,7 +298,7 @@ static const struct pixel_format_info pixel_format_table[] = {
|
|||
.opaque_substitute = DRM_FORMAT_XRGB8888,
|
||||
.addfb_legacy_depth = 32,
|
||||
.bpp = 32,
|
||||
GL_FORMAT_INFO(GL_BGRA8_EXT, GL_BGRA_EXT, GL_UNSIGNED_BYTE, RGBA),
|
||||
GL_FORMAT_INFO(GL_RGBA8, GL_RGBA, GL_UNSIGNED_BYTE, BGRA),
|
||||
GL_INTERNALFORMAT(GL_RGBA8),
|
||||
GL_FORMAT(GL_BGRA_EXT),
|
||||
GL_TYPE(GL_UNSIGNED_BYTE),
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue