Skip to content

Commit

Permalink
Merge pull request #136 from Davilarek/patch-1
Browse files Browse the repository at this point in the history
Fix conditional jump of unitialized value
  • Loading branch information
aap authored Nov 30, 2024
2 parents 895556f + d901d2d commit 15cb2cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gl/gl3device.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 15cb2cb

Please sign in to comment.