From 986628b8b202c497f876f94135d5d6b855f7541f Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Sun, 28 Nov 2010 22:50:27 -0800 Subject: Avoid temp storage --- OpenAL32/Include/alu.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'OpenAL32') diff --git a/OpenAL32/Include/alu.h b/OpenAL32/Include/alu.h index d3d29994..7f1cad0f 100644 --- a/OpenAL32/Include/alu.h +++ b/OpenAL32/Include/alu.h @@ -104,8 +104,7 @@ static __inline ALuint aluFrameSizeFromFormat(ALenum format) static __inline ALdouble lerp(ALdouble val1, ALdouble val2, ALdouble mu) { - val1 += (val2-val1) * mu; - return val1; + return val1 + (val2-val1)*mu; } static __inline ALdouble cubic(ALdouble val0, ALdouble val1, ALdouble val2, ALdouble val3, ALdouble mu) { -- cgit v1.2.3