1
0
Fork 0
mirror of https://github.com/bjornbytes/lovr.git synced 2024-07-02 12:33:52 +00:00

Fix Mesh:draw;

This commit is contained in:
bjorn 2018-12-12 19:39:01 -08:00
parent c999f10039
commit ff581d2e07

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,