gdk/gl: handle GL_RGBA/GL_UNSIGNED_NORMALIZED
authorChristian Hergert <chergert@redhat.com>
Thu, 24 Mar 2022 03:20:02 +0000 (20:20 -0700)
committerMatthias Clasen <mclasen@redhat.com>
Thu, 21 Apr 2022 23:15:05 +0000 (19:15 -0400)
commitcbd03cda5625ba4a0acfc37395ece2eef1335092
tree801d34ea812b8e3ddfbf2ff9142da482db507771
parent018bbd67742d3b9b75eaa22b10f63ed11e0cab2d
gdk/gl: handle GL_RGBA/GL_UNSIGNED_NORMALIZED

WebKit's GTK 4 port can give us textures with an internal format of
GL_RGBA with GL_UNSIGNED_NORMALIZED and a bit-depth of 8. This fixes
warnings for every GdkGLTexture created/delivered to the GskGLRenderer.

The format is essentially the same as GL_RGBA8 since it is normalized
between 0.0..1.0 for 8-bit components.

Fixes #4783
gdk/gdkgltexture.c