Fix vertex upload regression
authorCafe <cafe@not.applicable>
Fri, 28 Jul 2017 00:00:00 +0000 (00:00 +0000)
committerCafe <cafe@not.applicable>
Fri, 28 Jul 2017 22:23:45 +0000 (22:23 +0000)
re.c

diff --git a/re.c b/re.c
index 654d2b077b9b22e45ca090235ecf65e19dfb5e02..15898c600b8c0dbb492828183f68838bba0ccb9f 100644 (file)
--- a/re.c
+++ b/re.c
@@ -171,7 +171,7 @@ uint32_t upload_vertices(float *vertices, size_t sz)
        vb->vertices = (uint64_t) (uint32_t) verts;
 
        vb->vertex_size = sizeof(float) * XYZ_COMPONENT_COUNT; 
-       vb->size = sizeof(vertices);
+       vb->size = sz;
 
        vb->vertices |= 1; /* TODO flags */