From 8783d36183944748f05aecaea57ec40227695b76 Mon Sep 17 00:00:00 2001 From: bjorn Date: Wed, 11 Apr 2018 00:26:26 -0700 Subject: [PATCH] luax_readvertices returns vertex count correctly; --- src/api/graphics.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/api/graphics.c b/src/api/graphics.c index 87d98641..695a838a 100644 --- a/src/api/graphics.c +++ b/src/api/graphics.c @@ -68,7 +68,7 @@ static uint32_t luax_readvertices(lua_State* L, int index) { } } - return count; + return count / 3; } static void stencilCallback(void* userdata) {