mirror of
https://github.com/hyprwm/Hyprland
synced 2024-12-22 22:09:49 +01:00
format: fix flipped r/b channels on legacy_renderer
We don't wanna use an extension, but for gles2 there is no other option. fixes #6465
This commit is contained in:
parent
a357fa3e0a
commit
12ce06f39b
1 changed files with 12 additions and 4 deletions
|
@ -11,9 +11,13 @@
|
|||
*/
|
||||
inline const std::vector<SPixelFormat> GLES3_FORMATS = {
|
||||
{
|
||||
.drmFormat = DRM_FORMAT_ARGB8888,
|
||||
.flipRB = true,
|
||||
.glFormat = GL_RGBA,
|
||||
.drmFormat = DRM_FORMAT_ARGB8888,
|
||||
.flipRB = true,
|
||||
#ifndef GLES2
|
||||
.glFormat = GL_RGBA,
|
||||
#else
|
||||
.glFormat = GL_BGRA_EXT,
|
||||
#endif
|
||||
.glType = GL_UNSIGNED_BYTE,
|
||||
.withAlpha = true,
|
||||
.alphaStripped = DRM_FORMAT_XRGB8888,
|
||||
|
@ -22,7 +26,11 @@ inline const std::vector<SPixelFormat> GLES3_FORMATS = {
|
|||
{
|
||||
.drmFormat = DRM_FORMAT_XRGB8888,
|
||||
.flipRB = true,
|
||||
.glFormat = GL_RGBA,
|
||||
#ifndef GLES2
|
||||
.glFormat = GL_RGBA,
|
||||
#else
|
||||
.glFormat = GL_BGRA_EXT,
|
||||
#endif
|
||||
.glType = GL_UNSIGNED_BYTE,
|
||||
.withAlpha = false,
|
||||
.alphaStripped = DRM_FORMAT_XRGB8888,
|
||||
|
|
Loading…
Reference in a new issue