glsl: fix typo in the vec2 += operator function
authorBrian Paul <brianp@vmware.com>
Fri, 9 Jan 2009 00:07:28 +0000 (17:07 -0700)
committerBrian Paul <brianp@vmware.com>
Fri, 9 Jan 2009 00:24:42 +0000 (17:24 -0700)
src/mesa/shader/slang/library/slang_core.gc
src/mesa/shader/slang/library/slang_core_gc.h

index 748add4bc8f7b093ceaa997d5437df3372f0baa8..0a0d15903bc297ed8e7b001411f438d9815a2737 100644 (file)
@@ -1344,7 +1344,7 @@ float __operator /= (inout float a, const float b)
 
 vec2 __operator += (inout vec2 v, const vec2 u)
 {
-   v + v + u;
+   v = v + u;
    return v;
 }
 
index 76344c6824305288a0a0ff209dfa31df0305c354..b3d3e87cf42bbbde76b0633fa5742c4708095dc3 100644 (file)
 18,97,0,18,97,0,18,98,0,47,20,0,8,18,97,0,0,0,1,90,95,0,0,9,0,2,3,1,0,2,0,9,0,97,0,0,1,1,0,0,9,0,
 98,0,0,0,1,9,18,97,0,18,97,0,18,98,0,48,20,0,8,18,97,0,0,0,1,90,95,0,0,9,0,2,4,1,0,2,0,9,0,97,0,0,
 1,1,0,0,9,0,98,0,0,0,1,9,18,97,0,18,97,0,18,98,0,49,20,0,8,18,97,0,0,0,1,90,95,0,0,10,0,2,1,1,0,2,
-0,10,0,118,0,0,1,1,0,0,10,0,117,0,0,0,1,9,18,118,0,18,118,0,46,18,117,0,46,0,8,18,118,0,0,0,1,90,
+0,10,0,118,0,0,1,1,0,0,10,0,117,0,0,0,1,9,18,118,0,18,118,0,18,117,0,46,20,0,8,18,118,0,0,0,1,90,
 95,0,0,10,0,2,2,1,0,2,0,10,0,118,0,0,1,1,0,0,10,0,117,0,0,0,1,9,18,118,0,18,118,0,18,117,0,47,20,0,
 8,18,118,0,0,0,1,90,95,0,0,10,0,2,3,1,0,2,0,10,0,118,0,0,1,1,0,0,10,0,117,0,0,0,1,9,18,118,0,18,
 118,0,18,117,0,48,20,0,8,18,118,0,0,0,1,90,95,0,0,10,0,2,4,1,0,2,0,10,0,118,0,0,1,1,0,0,10,0,117,0,