Explorar el Código

tests: do not attempt to run GLSL tests without buffer tex support

rdb hace 7 años
padre
commit
f12bc29d6d
Se han modificado 1 ficheros con 3 adiciones y 0 borrados
  1. 3 0
      tests/display/test_glsl_shader.py

+ 3 - 0
tests/display/test_glsl_shader.py

@@ -45,6 +45,9 @@ def run_glsl_test(gsg, body, preamble="", inputs={}, version=430):
     if not gsg.supports_compute_shaders or not gsg.supports_glsl:
     if not gsg.supports_compute_shaders or not gsg.supports_glsl:
         pytest.skip("compute shaders not supported")
         pytest.skip("compute shaders not supported")
 
 
+    if not gsg.supports_buffer_texture:
+        pytest.skip("buffer textures not supported")
+
     __tracebackhide__ = True
     __tracebackhide__ = True
 
 
     preamble = preamble.strip()
     preamble = preamble.strip()