summaryrefslogtreecommitdiffstats
path: root/src/server.cpp
diff options
context:
space:
mode:
authorsalmonik <salmonik@tuta.io>2026-11-06 16:17:02 +0100
committersalmonik <salmonik@tuta.io>2026-11-06 16:17:02 +0100
commit8a5efe20e6e077e10592aa427d704836d2a08dd1 (patch)
tree1df8a4cacb3f0637682d569a9f9469d52546c8a0 /src/server.cpp
parentFix audit findings: crash safety, correctness, rendering, performance (diff)
downloadhl2h-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 '')
0 files changed, 0 insertions, 0 deletions