This commit is contained in:
Kovid Goyal 2026-08-04 11:35:50 +05:30
parent 836db2a78d
commit 3a93a9a311
No known key found for this signature in database
GPG key ID: 06BC317B515ACE7C

View file

@ -253,16 +253,16 @@ class LoadShaderPrograms:
for k in self.custom_shaders:
try:
d = parse_pipeline(k)
except FileNotFoundError as e:
except FileNotFoundError:
try:
custom_shader(k)
except Exception:
except Exception as e:
log_error(f'Failed to read custom shader pipeline definition from {k} with error: {e}')
continue
try:
d = parse_pipeline_definition(['startgroup', f' shaders {k}', 'endgroup'])
except Exception as e2:
log_error(f'Failed to build minimal shader pipeline for {k} with error: {e2}')
except Exception as e:
log_error(f'Failed to build minimal shader pipeline for {k} with error: {e}')
continue
except Exception as e:
log_error(f'Failed to read custom shader pipeline definition from {k} with error: {e}')