summaryrefslogtreecommitdiffstats
path: root/tree
diff options
context:
space:
mode:
authorsalmonik <salmonik@tuta.io>2026-11-04 00:43:49 +0100
committersalmonik <salmonik@tuta.io>2026-11-04 00:43:49 +0100
commitbbc08986d48f1c6dd88022a06f4c5ca2e651876d (patch)
treeed0a6871b421d9b327393586caec813ca4488188 /tree
parentSkybox image: power-of-two resize; upload at FRAME_RENDER_START (diff)
downloadhl2h-bbc08986d48f1c6dd88022a06f4c5ca2e651876d.tar.gz
hl2h-bbc08986d48f1c6dd88022a06f4c5ca2e651876d.zip
Skybox image: drop Refresh/SetUndefined (crash after apply)
The last crash happened after "applied", in materialsystem while the renderer walked a shader-parameter list that contained a null vtable entry. That points at the Refresh()/SetUndefined experiment: undefining $hdrcompressedtexture while the sky shader's static combo still expected it (and rebuilding state mid-level) left a broken material. Set the texture on $basetexture/$hdrbasetexture/$hdrcompressedtexture (and the 0/1/2 variants) and do neither SetUndefined nor Refresh: the visible-path material binds its base texture dynamically, which is what made the earlier black sky (empty 798x798 VTF) appear black at all. Log the first sky material's shader name so we know whether this map uses the LDR (UnlitGeneric) or HDR (sky) path.
Diffstat (limited to 'tree')
0 files changed, 0 insertions, 0 deletions