testsuite: Use a proper texture on defaultvalue test

This commit is contained in:
Benjamin Otte 2024-06-28 19:45:00 +02:00 committed by Matthias Clasen
parent 830846b39c
commit 77434fc9f9

View File

@ -123,6 +123,13 @@ test_type (gconstpointer data)
NULL);
g_object_unref (list_store);
}
else if (g_type_is_a (type, GDK_TYPE_TEXTURE))
{
static const guint8 pixels[4] = { 0xff, 0x00, 0x00, 0xff };
GBytes *bytes = g_bytes_new_static (pixels, sizeof (pixels));
instance = (GObject *) gdk_memory_texture_new (1, 1, GDK_MEMORY_DEFAULT, bytes, 4);
g_bytes_unref (bytes);
}
else if (g_type_is_a (type, GSK_TYPE_GL_SHADER))
{
GBytes *bytes = g_bytes_new_static ("", 0);