Merge pull request #136 from Davilarek/patch-1

Fix conditional jump of unitialized value
This commit is contained in:
aap 2024-11-30 22:29:43 +01:00 committed by GitHub
commit 15cb2cbb53
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1110,7 +1110,7 @@ flushCache(void)
uniformState.fogRange = 1.0f/(rwStateCache.fogStart - rwStateCache.fogEnd);
if(uniformStateDirty[RWGL_ALPHAFUNC] || uniformStateDirty[RWGL_ALPHAREF]){
float alphaTest[4];
float alphaTest[4] = {};
switch(alphaFunc){
case ALPHAALWAYS:
default: