summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrodri <rgl@antares-labs.eu>2024-06-16 09:58:28 +0000
committerrodri <rgl@antares-labs.eu>2024-06-16 09:58:28 +0000
commit32219aaa35b07d6abceb7df9f802c9758b53eb72 (patch)
treedcd2b1db4883160fe1128dcabc4b7ca53aa6666d
parentc69735e24f7c5926ed63ff8c5292be282aa8b240 (diff)
downloadlibgraphics-32219aaa35b07d6abceb7df9f802c9758b53eb72.tar.gz
libgraphics-32219aaa35b07d6abceb7df9f802c9758b53eb72.tar.bz2
libgraphics-32219aaa35b07d6abceb7df9f802c9758b53eb72.zip
render: don't overwrite the vertex colors with white. report alien prims.
-rw-r--r--render.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/render.c b/render.c
index 2f38c32..7fb3ae5 100644
--- a/render.c
+++ b/render.c
@@ -227,6 +227,7 @@ discard:
delvattrs(&fsp.v);
}
break;
+ default: sysfatal("alien primitive detected");
}
}
@@ -326,7 +327,6 @@ tilerdurden(void *arg)
memmove(p, ep, sizeof *p);
switch(ep->type){
case PPoint:
- p[0].v[0].c = Pt3(1,1,1,1);
p[0].v[0].mtl = ep->mtl;
p[0].v[0].attrs = nil;
p[0].v[0].nattrs = 0;
@@ -361,7 +361,6 @@ tilerdurden(void *arg)
break;
case PLine:
for(i = 0; i < 2; i++){
- p[0].v[i].c = Pt3(1,1,1,1);
p[0].v[i].mtl = ep->mtl;
p[0].v[i].attrs = nil;
p[0].v[i].nattrs = 0;
@@ -404,7 +403,6 @@ tilerdurden(void *arg)
break;
case PTriangle:
for(i = 0; i < 3; i++){
- p[0].v[i].c = Pt3(1,1,1,1);
p[0].v[i].mtl = p->mtl;
p[0].v[i].attrs = nil;
p[0].v[i].nattrs = 0;
@@ -455,6 +453,7 @@ tilerdurden(void *arg)
delvattrs(&p[np].v[2]);
}
break;
+ default: sysfatal("alien primitive detected");
}
}
params->job->times.Tn.t1 = nanosec();