summaryrefslogtreecommitdiffstats
path: root/tree
diff options
context:
space:
mode:
authorsalmonik <salmonik@tuta.io>2026-11-04 00:07:36 +0100
committersalmonik <salmonik@tuta.io>2026-11-04 00:07:36 +0100
commit49d6e90919bbc4f287013e429048afaf340d13b9 (patch)
treed46fb3c1dd8d78a75bd3df3f066ef90c0821b355 /tree
parentWorld: replace skybox changer with a PNG skybox image (diff)
downloadhl2h-49d6e90919bbc4f287013e429048afaf340d13b9.tar.gz
hl2h-49d6e90919bbc4f287013e429048afaf340d13b9.zip
Skybox image: upload via procedural texture, not CreateTextureFromBits
The crash was CreateTextureFromBits: this build's IMaterialSystem interface stops at GetDisplayDeviceName, and the slots after it are CMaterialSystem's own virtuals, so index 134 was an unrelated function. Use CreateProceduralTexture (81, verified by disassembling the interface vtable) together with an ITextureRegenerator (SetTextureRegenerator 12, Download 13) that fills mip 0 via IVTFTexture::ImageData (39; IVTFTexture has a two-slot virtual destructor, so Width=15, Height=16, RowSizeInBytes=19).
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions