fixed a crash when the number of shader stages was wrong ("brandon" player model)

This commit is contained in:
myT 2017-11-29 19:08:29 +01:00
parent 3ad521544c
commit 5689cb3d1e
2 changed files with 3 additions and 0 deletions

View file

@ -1,6 +1,8 @@
DD Mmm 17 - 1.49
fix: crash when the number of shader stages was wrong (would happen with the "brandon" player model)
fix: the release of a key bound to "+vstr a b" would execute "b" even though the key press didn't execute "a"
chg: r_brightness <0.25..32.0> (default: 2) replaces r_overBrightBits

View file

@ -1504,6 +1504,7 @@ static shader_t* GeneratePermanentShader()
for ( int i = 0; i < newShader->numStages; ++i ) {
if ( !stages[i].active ) {
newShader->numStages = i;
break;
}
newShader->stages[i] = RI_New<shaderStage_t>();