From: Matthias Clasen Date: Wed, 31 May 2023 18:39:07 +0000 (-0400) Subject: gltexturebuilder: Update the docs X-Git-Tag: archive/raspbian/4.12.3+ds-1+rpi1~1^2^2^2~22^2~1^2~197^2 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=39f4d5ccf714981b705ff4479d3de04bb49f4a9b;p=gtk4.git gltexturebuilder: Update the docs We do handle unpremultiplied alpha correctly (albeit non-optimally) now. --- diff --git a/gdk/gdkgltexturebuilder.c b/gdk/gdkgltexturebuilder.c index 4b58be475b..e002d3121b 100644 --- a/gdk/gdkgltexturebuilder.c +++ b/gdk/gdkgltexturebuilder.c @@ -649,14 +649,13 @@ gdk_gl_texture_builder_get_format (GdkGLTextureBuilder *self) * `GDK_MEMORY_R16G16B16A16_PREMULTIPLIED` is expected to be stored as `GL_RGBA16` * texture, and `GDK_MEMORY_G8A8` is expected to be stored as `GL_RG8` texture. * - * GDK allows GL textures to have unpremultiplied alpha, but GSK's GL renderer can't - * currently handle such textures. Non-RGBA textures need to have swizzling parameters - * set up properly to be usable in GSK's shaders. - * * Setting the right format is particularly useful when using high bit depth textures * to preserve the bit depth, to set the correct value for unpremultiplied textures * and to make sure opaque textures are treated as such. * + * Non-RGBA textures need to have swizzling parameters set up properly to be usable + * in GSK's shaders. + * * Since: 4.12 */ void