]> git.tdb.fi Git - libs/gl.git/commitdiff
Fix a copypaste error in AnimationPlayer uniform setting code
authorMikko Rasa <tdb@tdb.fi>
Sat, 8 Jun 2019 18:08:00 +0000 (21:08 +0300)
committerMikko Rasa <tdb@tdb.fi>
Sat, 8 Jun 2019 18:08:00 +0000 (21:08 +0300)
source/animationplayer.cpp

index cbcb6b596f07addcdac87d3f7d6ab8bd3b992af4..a3c6ee2289b645be9ba628edb9e23c6112775b67 100644 (file)
@@ -209,7 +209,7 @@ void AnimationPlayer::set_object_uniform(AnimatedObject &obj, const string &name
                shdata.uniform(name, uni.values[0]);
        else if(uni.size==2)
                shdata.uniform2(name, uni.values);
-       else if(uni.size==2)
+       else if(uni.size==3)
                shdata.uniform3(name, uni.values);
        else if(uni.size==4)
                shdata.uniform4(name, uni.values);