mirror of https://github.com/bjornbytes/lovr.git
Fix Mesh:draw;
This commit is contained in:
parent
c999f10039
commit
ff581d2e07
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue