libobs/graphics: Fix the 2D vector dot product func

The operators were unintentionally reversed.

Closes jp9000/obs-studio#724
This commit is contained in:
Autumin
2016-12-18 06:20:24 -08:00
committed by jp9000
parent 0d5a23d5f7
commit 0ff4feab02
+1 -1
View File
@@ -106,7 +106,7 @@ static inline void vec2_neg(struct vec2 *dst, const struct vec2 *v)
static inline float vec2_dot(const struct vec2 *v1, const struct vec2 *v2)
{
return (v1->x+v2->x) * (v1->y+v2->y);
return v1->x*v2->x + v1->y*v2->y;
}
static inline float vec2_len(const struct vec2 *v)