osmesa: Enable Mesa/OSMesa rendering for mac (#8530)

This commit enables local running of the renderdiff tests and also
for github workflows.
This commit is contained in:
Powei Feng
2025-03-20 22:37:23 +00:00
committed by GitHub
parent 8c396caba0
commit df897b3fb2
12 changed files with 232 additions and 81 deletions
+6 -1
View File
@@ -46,7 +46,12 @@ def render_test(gltf_viewer, test_config, output_dir,
for backend in test_config.backends:
env = None
if backend == 'opengl' and opengl_lib and os.path.isdir(opengl_lib):
env = {'LD_LIBRARY_PATH': opengl_lib}
env = {
'LD_LIBRARY_PATH': opengl_lib,
# for macOS
'DYLD_LIBRARY_PATH': opengl_lib,
}
for model in test.models:
model_path = test_config.models[model]