[gtk/image-loading] Fix memorytexture float conversion
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/image-loading] Fix memorytexture float conversion
- Date: Wed, 15 Sep 2021 04:27:53 +0000 (UTC)
commit d0420e4f5f34b5eb25f9a677f4992f2f4743686e
Author: Matthias Clasen <mclasen redhat com>
Date: Wed Sep 15 00:27:32 2021 -0400
Fix memorytexture float conversion
gdk/gdkmemorytexture.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/gdk/gdkmemorytexture.c b/gdk/gdkmemorytexture.c
index 631357bcc8..6c08ef531b 100644
--- a/gdk/gdkmemorytexture.c
+++ b/gdk/gdkmemorytexture.c
@@ -603,7 +603,7 @@ convert_rgba16_to_float (float *dest, const guchar *src_data)
dest[0] = src[0] / 65535.f;
dest[1] = src[1] / 65535.f;
dest[2] = src[2] / 65535.f;
- dest[3] = 1.0;
+ dest[3] = src[3] / 65535.f;
}
static inline void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]