diff options
Diffstat (limited to 'graphics/asymptote/base/shaders/sum1.glsl')
-rw-r--r-- | graphics/asymptote/base/shaders/sum1.glsl | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/graphics/asymptote/base/shaders/sum1.glsl b/graphics/asymptote/base/shaders/sum1.glsl index 2cb9ed23aa..f1fa8454b0 100644 --- a/graphics/asymptote/base/shaders/sum1.glsl +++ b/graphics/asymptote/base/shaders/sum1.glsl @@ -29,10 +29,8 @@ void main(void) uint Sum=offset[row]; offset[elements+row]=Sum; - for(uint i=row+1u; i < stop; ++i) { - Sum += offset[i]; - offset[elements+i]=Sum; - } + for(uint i=row+1u; i < stop; ++i) + offset[elements+i]=Sum += offset[i]; localSum[id+1u]=Sum; } |