mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-14 20:51:07 +00:00
testsuite: Use a proper texture on objects-finalize test
This commit is contained in:
parent
3073704010
commit
830846b39c
@ -69,6 +69,13 @@ test_finalize_object (gconstpointer data)
|
||||
NULL);
|
||||
gdk_content_formats_unref (formats);
|
||||
}
|
||||
else if (g_type_is_a (test_type, GDK_TYPE_TEXTURE))
|
||||
{
|
||||
static const guint8 pixels[4] = { 0xff, 0x00, 0x00, 0xff };
|
||||
GBytes *bytes = g_bytes_new_static (pixels, sizeof (pixels));
|
||||
object = (GObject *) gdk_memory_texture_new (1, 1, GDK_MEMORY_DEFAULT, bytes, 4);
|
||||
g_bytes_unref (bytes);
|
||||
}
|
||||
else if (g_type_is_a (test_type, GSK_TYPE_GL_SHADER))
|
||||
{
|
||||
GBytes *bytes = g_bytes_new_static ("", 0);
|
||||
|
Loading…
Reference in New Issue
Block a user