summaryrefslogtreecommitdiff
path: root/vertex.c
diff options
context:
space:
mode:
authorrodri <rgl@antares-labs.eu>2024-09-07 18:39:36 +0000
committerrodri <rgl@antares-labs.eu>2024-09-07 18:39:36 +0000
commitfb2c8083f028676d0c46e0d9a89de78b3f129552 (patch)
tree118926304536332ac57823413fd1241143cceeaa /vertex.c
parentd36e762e12d108fec8cd19071b22909b4466812a (diff)
downloadlibgraphics-fb2c8083f028676d0c46e0d9a89de78b3f129552.tar.gz
libgraphics-fb2c8083f028676d0c46e0d9a89de78b3f129552.tar.bz2
libgraphics-fb2c8083f028676d0c46e0d9a89de78b3f129552.zip
remove unnecessary copying. profile individual stage procs.
Diffstat (limited to 'vertex.c')
-rw-r--r--vertex.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/vertex.c b/vertex.c
index 5701c23..98f2ec5 100644
--- a/vertex.c
+++ b/vertex.c
@@ -59,8 +59,6 @@ lerpvertex(Vertex *v, Vertex *v0, Vertex *v1, double t)
v->c = lerp3(v0->c, v1->c, t);
v->uv = lerp2(v0->uv, v1->uv, t);
v->mtl = v0->mtl != nil? v0->mtl: v1->mtl;
- v->attrs = nil;
- v->nattrs = 0;
for(i = 0; i < v0->nattrs; i++){
va.id = v0->attrs[i].id;
va.type = v0->attrs[i].type;
@@ -86,8 +84,6 @@ berpvertex(Vertex *v, Vertex *v0, Vertex *v1, Vertex *v2, Point3 bc)
v->c = berp3(v0->c, v1->c, v2->c, bc);
v->uv = berp2(v0->uv, v1->uv, v2->uv, bc);
v->mtl = v0->mtl != nil? v0->mtl: v1->mtl != nil? v1->mtl: v2->mtl;
- v->attrs = nil;
- v->nattrs = 0;
for(i = 0; i < v0->nattrs; i++){
va.id = v0->attrs[i].id;
va.type = v0->attrs[i].type;