Fix Mesh:draw;

This commit is contained in:
bjorn 2018-12-12 19:39:01 -08:00
parent c999f10039
commit ff581d2e07
1 changed files with 1 additions and 1 deletions

View File

@ -74,7 +74,7 @@ int l_lovrMeshDetachAttributes(lua_State* L) {
int l_lovrMeshDraw(lua_State* L) {
Mesh* mesh = luax_checktype(L, 1, Mesh);
float transform[16];
int index = luax_readmat4(L, 3, transform, 1, NULL);
int index = luax_readmat4(L, 2, transform, 1, NULL);
int instances = luaL_optinteger(L, index, 1);
lovrGraphicsDraw(&(DrawCommand) {
.transform = transform,