mirror of
https://github.com/bjornbytes/lovr.git
synced 2024-07-08 23:23:38 +00:00
rm extra restrict qualifier;
Maybe this is confusing MSVC. Doesn't appear to impact codegen.
This commit is contained in:
parent
d1f754d5f9
commit
feae7bdf3a
|
@ -4,7 +4,7 @@
|
||||||
#include <math.h>
|
#include <math.h>
|
||||||
|
|
||||||
// Explicit curve evaluation, unroll simple cases to avoid pow overhead
|
// 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) {
|
if (n == 2) {
|
||||||
p[0] = P[0] + (P[4] - P[0]) * t;
|
p[0] = P[0] + (P[4] - P[0]) * t;
|
||||||
p[1] = P[1] + (P[5] - P[1]) * t;
|
p[1] = P[1] + (P[5] - P[1]) * t;
|
||||||
|
|
Loading…
Reference in a new issue