Fix swizzle values for some memory formats
authorMatthias Clasen <mclasen@redhat.com>
Thu, 26 Oct 2023 01:39:52 +0000 (21:39 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Fri, 17 Nov 2023 19:53:41 +0000 (14:53 -0500)
commit0bf68f1372cfd5b5076f752713e8cda886a7cbec
treeca08c9f1540745bae89d4d4bf99f99343c0a4d37
parent722953737d1957b2cec7d7a976a846a15237ba30
Fix swizzle values for some memory formats

For opaque formats with 3 channels, we should use the default
GL_ALPHA, but for opaque formats with an ignored 4th channel,
we must use GL_ONE.
gdk/gdkmemoryformat.c