summaryrefslogtreecommitdiffstats
path: root/src/hl2h.h
diff options
context:
space:
mode:
authorsalmonik <salmonik@tuta.io>2026-11-04 00:29:24 +0100
committersalmonik <salmonik@tuta.io>2026-11-04 00:29:24 +0100
commit4632788c4bef265e58630473eed5559bf125a726 (patch)
tree9264d8f59c8914e118adfafc4592ee77377eaf9e /src/hl2h.h
parentSkybox image: fix HDR sky binding; clip checkbox/arrow drawing (diff)
downloadhl2h-4632788c4bef265e58630473eed5559bf125a726.tar.gz
hl2h-4632788c4bef265e58630473eed5559bf125a726.zip
Skybox image: power-of-two resize; upload at FRAME_RENDER_START
- The material system rejects textures whose dimensions are not multiples of 4 ("Image dimensions must be multiple of 4!"), so scale the decoded image to the next power of two (bilinear). 798x798 -> 1024x1024. The invalid VTF also crashed the renderer after the apply. - Move skybox_update() out of the VGUI paint hook into the FRAME_RENDER_START FrameStageNotify stage. ITexture::Download only regenerates bits when the material system considers the frame render-safe; during paint it returned early, the regenerator never ran (no pixels), and a later upload of the empty VTF crashed. - Log the regenerator entry so the log shows whether the upload path ran.
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions