fix broken __postDecr()
authorBrian <brian@yutani.localnet.net>
Wed, 7 Mar 2007 18:25:37 +0000 (11:25 -0700)
committerBrian <brian@yutani.localnet.net>
Wed, 7 Mar 2007 18:25:37 +0000 (11:25 -0700)
src/mesa/shader/slang/library/slang_core.gc

index 0c45515..25afccf 100644 (file)
@@ -2333,8 +2333,8 @@ ivec4 __postDecr(inout ivec4 v)
 
 float __postDecr(inout float a)
 {
-   __retVal = v;
-   v = v - 1.0;
+   __retVal = a;
+   a = a - 1.0;
 }
 
 vec2 __postDecr(inout vec2 v)