Bug with fader window
1 year, 7 months ago Edited by Mārtiņš Možeiko on March 13, 2016, 2:35 a.m.
In win32_handmade.cpp we have following code:
InitFader function only tries to set Fader->Window member, but always leaves Fader->State and Fader->Alpha uninitialized. It actually can also skip assignment to Fader->Window if RegisterClassA fails (unlikely).
Not initializing Fader->State member, will make assertion later in UpdateFade to fail:
Because Fader->State will contain garbage value (whatever is on the stack in Fader structure) and no case will match it.