diff --git a/tests/interactive/test-cogl-vertex-buffer.c b/tests/interactive/test-cogl-vertex-buffer.c index 1e5d4f466..a420b7871 100644 --- a/tests/interactive/test-cogl-vertex-buffer.c +++ b/tests/interactive/test-cogl-vertex-buffer.c @@ -245,9 +245,10 @@ gaussian (float x, float y) /* Center offset */ float b = 0.0; + float dist; x = x - RIPPLE_CENTER_X; y = y - RIPPLE_CENTER_Y; - float dist = sqrtf (x*x + y*y); + dist = sqrtf (x*x + y*y); return a * exp ((- ((dist - b) * (dist - b))) / (2.0 * c * c)); }