summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrodri <rgl@antares-labs.eu>2024-09-27 10:48:47 +0000
committerrodri <rgl@antares-labs.eu>2024-09-27 10:48:47 +0000
commit50d107f27c8ee8980693f54d0fadbdd641516e2a (patch)
tree9d8b4af71a95876f6f114124c5880d5c838bf4d2
parent39e63bec577e4f5e105a7922a7f7d580cb3d76ae (diff)
downloadlibgraphics-50d107f27c8ee8980693f54d0fadbdd641516e2a.tar.gz
libgraphics-50d107f27c8ee8980693f54d0fadbdd641516e2a.tar.bz2
libgraphics-50d107f27c8ee8980693f54d0fadbdd641516e2a.zip
remove pointless warning.
it's a leftover from a previous version of the parser.
-rwxr-xr-x.workspace2
-rw-r--r--marshal.c18
2 files changed, 0 insertions, 20 deletions
diff --git a/.workspace b/.workspace
index 0256c96..ca55f2d 100755
--- a/.workspace
+++ b/.workspace
@@ -1,4 +1,2 @@
#!/bin/rc
-bind -bc ../libobj libobj
-
B *.[hc] mkfile readme doc/*.ms
diff --git a/marshal.c b/marshal.c
index 4e7cacd..db6487c 100644
--- a/marshal.c
+++ b/marshal.c
@@ -227,24 +227,6 @@ rmmtltab(Mtltab *t)
}
}
-/*
- * TODO if materials are inserted between primitive declarations
- * references to those materials from early primitives can cause
- * out-of-bounds accesses. find a solution.
- *
- * example:
- *
- * mtl A {
- * diffuse: 1 0 0
- * }
- * prim ... A
- * mtl B {
- * diffuse: 1 0 0
- * }
- * prim ... B
- *
- * now the reference to A is probably wrong because of realloc.
- */
Model *
readmodel(int fd)
{