gltexturebuilder: Update the docs
authorMatthias Clasen <mclasen@redhat.com>
Wed, 31 May 2023 18:39:07 +0000 (14:39 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Wed, 31 May 2023 18:39:07 +0000 (14:39 -0400)
We do handle unpremultiplied alpha correctly (albeit
non-optimally) now.

gdk/gdkgltexturebuilder.c

index 4b58be475b35f25ac0e7ce910ae509d40b9dffb1..e002d3121ba191a66867e678ec23fc567ec35242 100644 (file)
@@ -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