ValveSoftware / halflife

Half-Life 1 engine based games
Other
3.55k stars 594 forks source link

[HL] "lightgamma" Command Triggers "Hunk_Alloc" Fatal Error #3753

Open 0Ky opened 3 months ago

0Ky commented 3 months ago

I've encountered a crash in Half-Life when executing the lightgamma command with a value equal to or less than 1.8, resulting in the error Hunk_Alloc: failed on 200 bytes. This issue occurs consistently on Linux and Windows version of the game running with OpenGL video renderer, suggesting a possible memory allocation problem.

image

pierow commented 3 weeks ago

This happens if changing lightgamma, gamma, or brightness multiple times as well.