1
0
Fork 0
mirror of https://github.com/bjornbytes/lovr.git synced 2024-07-03 04:53:35 +00:00

rm extra restrict qualifier;

Maybe this is confusing MSVC.  Doesn't appear to impact codegen.
This commit is contained in:
bjorn 2019-06-04 04:20:23 -07:00
parent d1f754d5f9
commit feae7bdf3a

View file

@ -4,7 +4,7 @@
#include <math.h>
// Explicit curve evaluation, unroll simple cases to avoid pow overhead
static void evaluate(float* restrict P, int n, float t, vec3 restrict p) {
static void evaluate(float* restrict P, int n, float t, vec3 p) {
if (n == 2) {
p[0] = P[0] + (P[4] - P[0]) * t;
p[1] = P[1] + (P[5] - P[1]) * t;