diff options
| author | salmonik <salmonik@tuta.io> | 2026-11-06 16:17:02 +0100 |
|---|---|---|
| committer | salmonik <salmonik@tuta.io> | 2026-11-06 16:17:02 +0100 |
| commit | 8a5efe20e6e077e10592aa427d704836d2a08dd1 (patch) | |
| tree | 1df8a4cacb3f0637682d569a9f9469d52546c8a0 /docs | |
| parent | Fix audit findings: crash safety, correctness, rendering, performance (diff) | |
| download | hl2h-8a5efe20e6e077e10592aa427d704836d2a08dd1.tar.gz hl2h-8a5efe20e6e077e10592aa427d704836d2a08dd1.zip | |
Chams: leave engine-forced material passes alone
Shadow-depth and reflection passes call DrawModelExecute with a material
already forced via IVModelRender::ForcedMaterialOverride. Chams could not tell
that apart from a free draw, substituted its own material (putting chams into
the shadow map) and then cleared the override to null, which broke the shadow
material for every model drawn afterwards.
Hook slot 1 as a tracker so the current forced material is known, and skip the
chams substitution whenever one is active.
Diffstat (limited to 'docs')
0 files changed, 0 insertions, 0 deletions
