gdk: Simplify gdk_memory_format_gl_format
authorMatthias Clasen <mclasen@redhat.com>
Tue, 30 May 2023 04:08:55 +0000 (00:08 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Tue, 30 May 2023 18:49:45 +0000 (14:49 -0400)
commit0f61c52593f963f773cd630735350f75ceece86f
tree3002ac9d42c30eb6ac8c004d1e2fc9c503b1b5a2
parenta4bae6a62d95fe3c65166f4d36545c2bf426e60f
gdk: Simplify gdk_memory_format_gl_format

Make the callers of this function check for
straight alpha themselves, and only do the
version compatibility check here. This makes
the function usable in contexts where straight
alpha is acceptable.
gdk/gdkgltexture.c
gdk/gdkmemoryformat.c
gsk/gl/gskglcommandqueue.c