gdk/gl: handle GL_RGBA/GL_UNSIGNED_NORMALIZED
authorChristian Hergert <chergert@redhat.com>
Thu, 24 Mar 2022 03:20:02 +0000 (20:20 -0700)
committerChristian Hergert <chergert@redhat.com>
Fri, 25 Mar 2022 01:05:11 +0000 (18:05 -0700)
commite706e14fd9ea29ed76a99decad2e8b88a4f68353
tree9e1e5ba905b8cba51bd88e59639d62eedfcea4c5
parentffffb382e254b57c7701f09b05fdcebe58a6cb9a
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