mirror of https://github.com/bjornbytes/lovr.git
Fix bug with base vertex in Pass:mesh;
This commit is contained in:
parent
05250988df
commit
e57d76c6e9
|
@ -766,7 +766,7 @@ static int l_lovrPassMesh(lua_State* L) {
|
|||
int index = luax_readmat4(L, indices ? 4 : 3, transform, 1);
|
||||
uint32_t start = luax_optu32(L, index++, 1) - 1;
|
||||
uint32_t count = luax_optu32(L, index++, ~0u);
|
||||
uint32_t instances = luax_optu32(L, index, 1);
|
||||
uint32_t instances = luax_optu32(L, index++, 1);
|
||||
uint32_t base = luax_optu32(L, index++, 0);
|
||||
if (count == ~0u && lua_type(L, 2) == LUA_TNUMBER) {
|
||||
count = lua_tointeger(L, 2);
|
||||
|
|
Loading…
Reference in New Issue