mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-13 22:10:08 +00:00
memoryformat: Fix broken swizzle values
I can't copy/paste.
This commit is contained in:
parent
81adf6be22
commit
f357623170
@ -372,7 +372,7 @@ static const GdkMemoryFormatDescription memory_formats[] = {
|
||||
.type = GL_UNSIGNED_BYTE,
|
||||
.swizzle = { GL_RED, GL_GREEN, GL_BLUE, GL_ALPHA },
|
||||
.rgba_format = GDK_MEMORY_R8G8B8A8_PREMULTIPLIED,
|
||||
.rgba_swizzle = { GL_BLUE, GL_GREEN, GL_BLUE, GL_ALPHA },
|
||||
.rgba_swizzle = { GL_BLUE, GL_GREEN, GL_RED, GL_ALPHA },
|
||||
},
|
||||
.to_float = b8g8r8a8_premultiplied_to_float,
|
||||
.from_float = b8g8r8a8_premultiplied_from_float,
|
||||
@ -455,7 +455,7 @@ static const GdkMemoryFormatDescription memory_formats[] = {
|
||||
.type = GL_UNSIGNED_BYTE,
|
||||
.swizzle = { GL_RED, GL_GREEN, GL_BLUE, GL_ALPHA },
|
||||
.rgba_format = GDK_MEMORY_R8G8B8A8,
|
||||
.rgba_swizzle = { GL_BLUE, GL_GREEN, GL_BLUE, GL_ALPHA },
|
||||
.rgba_swizzle = { GL_BLUE, GL_GREEN, GL_RED, GL_ALPHA },
|
||||
},
|
||||
.to_float = b8g8r8a8_to_float,
|
||||
.from_float = b8g8r8a8_from_float,
|
||||
@ -539,7 +539,7 @@ static const GdkMemoryFormatDescription memory_formats[] = {
|
||||
.type = GL_UNSIGNED_BYTE,
|
||||
.swizzle = { GL_RED, GL_GREEN, GL_BLUE, GL_ONE },
|
||||
.rgba_format = GDK_MEMORY_R8G8B8X8,
|
||||
.rgba_swizzle = { GL_BLUE, GL_GREEN, GL_BLUE, GL_ONE },
|
||||
.rgba_swizzle = { GL_BLUE, GL_GREEN, GL_RED, GL_ONE },
|
||||
},
|
||||
.to_float = b8g8r8x8_to_float,
|
||||
.from_float = b8g8r8x8_from_float,
|
||||
|
Loading…
Reference in New Issue
Block a user