demos: shadertoy only handles GL

If somebody wants to add GLES support, go for it.

For now we enforce GL.
This commit is contained in:
Benjamin Otte 2024-03-03 22:44:24 +01:00 committed by Benjamin Otte
parent 0e5c94a094
commit d88e616711

View File

@ -116,7 +116,9 @@ static gboolean gtk_shadertoy_tick (GtkWidget *widget,
GtkWidget *
gtk_shadertoy_new (void)
{
return g_object_new (gtk_shadertoy_get_type (), NULL);
return g_object_new (gtk_shadertoy_get_type (),
"allowed-apis", GDK_GL_API_GL,
NULL);
}
static void