From: Mikko Rasa Date: Sat, 8 Jun 2019 18:08:00 +0000 (+0300) Subject: Fix a copypaste error in AnimationPlayer uniform setting code X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=77ad5a1a89aa43d9a3c8c58abff1ae184510cec6;p=libs%2Fgl.git Fix a copypaste error in AnimationPlayer uniform setting code --- diff --git a/source/animationplayer.cpp b/source/animationplayer.cpp index cbcb6b59..a3c6ee22 100644 --- a/source/animationplayer.cpp +++ b/source/animationplayer.cpp @@ -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);