testsuite: Compare textures properly

When compoaring textures, we now need to look
at the colorspace as well.
This commit is contained in:
Matthias Clasen
2022-09-30 14:24:05 -04:00
parent 208e5a9931
commit 5f706c73fd

View File

@@ -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_state_equal (gdk_texture_get_color_state (t1), gdk_texture_get_color_state (t2)))
return FALSE;
d1 = g_malloc (width * height * 4);
d2 = g_malloc (width * height * 4);