mirror of
https://bitbucket.org/CPMADevs/cnq3
synced 2025-01-31 21:00:47 +00:00
fixed a crash when the number of shader stages was wrong ("brandon" player model)
This commit is contained in:
parent
3ad521544c
commit
5689cb3d1e
2 changed files with 3 additions and 0 deletions
|
@ -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
|
||||
|
|
|
@ -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>();
|
||||
|
|
Loading…
Reference in a new issue