memoryformat: Fix broken swizzle values

I can't copy/paste.
This commit is contained in:
Benjamin Otte 2023-12-14 16:01:19 +01:00
parent 81adf6be22
commit f357623170

View File

@ -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,