[gtk/matthiasc/color-profile-rebased: 50/51] testsuite: Compare textures properly
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/matthiasc/color-profile-rebased: 50/51] testsuite: Compare textures properly
- Date: Sat, 1 Oct 2022 01:36:44 +0000 (UTC)
commit fde2fefbcd74f7f463a0274987c2698cc07f26f3
Author: Matthias Clasen <mclasen redhat com>
Date: Fri Sep 30 14:24:05 2022 -0400
testsuite: Compare textures properly
When compoaring textures, we now need to look
at the colorspace as well.
testsuite/gdk/contentserializer.c | 4 ++++
1 file changed, 4 insertions(+)
---
diff --git a/testsuite/gdk/contentserializer.c b/testsuite/gdk/contentserializer.c
index a807951707..0da5c54c73 100644
--- a/testsuite/gdk/contentserializer.c
+++ b/testsuite/gdk/contentserializer.c
@@ -42,9 +42,13 @@ textures_equal (GdkTexture *t1, GdkTexture *t2)
if (width != gdk_texture_get_width (t2))
return FALSE;
+
if (height != gdk_texture_get_height (t2))
return FALSE;
+ if (!gdk_color_space_equal (gdk_texture_get_color_space (t1), gdk_texture_get_color_space (t2)))
+ return FALSE;
+
d1 = g_malloc (width * height * 4);
d2 = g_malloc (width * height * 4);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]