testsuite: Make GLES testsuite run use GLES 2
authorBenjamin Otte <otte@redhat.com>
Sat, 15 Apr 2023 15:53:54 +0000 (17:53 +0200)
committerBenjamin Otte <otte@redhat.com>
Sat, 15 Apr 2023 15:55:20 +0000 (17:55 +0200)
We want to support GLES 2, so make sure we test that support.

Also force-disable common extensions we don't explicitly check for and
don't want to accidentally use.

testsuite/meson.build

index 2957a42d8015fcca5acb0b2f3922b306d05cf2d9..15c80a07f2e98f24ef30e212401867439a3aee6f 100644 (file)
@@ -17,7 +17,10 @@ setups = [
   { 'backend': 'wayland', 'if': wayland_enabled, 'is_default': true, },
   { 'name': 'wayland_gles',
     'backend': 'wayland', 'if': wayland_enabled,
-    'env': ['GDK_DEBUG=gl-gles,default-settings'], },
+    'env': ['GDK_DEBUG=gl-gles,default-settings',
+            'MESA_GLES_VERSION_OVERRIDE=2.0',
+            'MESA_EXTENSION_OVERRIDE=-GL_OES_vertex_array_object',
+           ], },
   { 'backend': 'win32', 'if': os_win32 },
   { 'backend': 'broadway', 'if': broadway_enabled, },
   { 'name': 'wayland_smalltexture',