Permalink
Browse files

Fixed incorrect parameter class test.

  • Loading branch information...
1 parent 9897eb0 commit ba972758a7c940b801e61d1dfb5cf97b5827de99 @tomspilman tomspilman committed Feb 13, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 MonoGame.Framework/Graphics/Effect/EffectParameter.cs
View
2 MonoGame.Framework/Graphics/Effect/EffectParameter.cs
@@ -552,7 +552,7 @@ public void SetValue (Texture value)
public void SetValue (Vector2 value)
{
- if (ParameterClass != EffectParameterClass.Scalar || ParameterType != EffectParameterType.Single)
+ if (ParameterClass != EffectParameterClass.Vector || ParameterType != EffectParameterType.Single)
throw new InvalidCastException();
var fData = (float[])Data;

0 comments on commit ba97275

Please sign in to comment.