mirror of https://github.com/bjornbytes/lovr.git
Pass:mipmap base mipmap index is 1-indexed;
This commit is contained in:
parent
7851f49910
commit
ee809ec31a
|
@ -959,7 +959,7 @@ static int l_lovrPassBlit(lua_State* L) {
|
|||
static int l_lovrPassMipmap(lua_State* L) {
|
||||
Pass* pass = luax_checktype(L, 1, Pass);
|
||||
Texture* texture = luax_checktype(L, 2, Texture);
|
||||
uint32_t base = luax_optu32(L, 3, 0);
|
||||
uint32_t base = luax_optu32(L, 3, 1) - 1;
|
||||
uint32_t count = luax_optu32(L, 4, ~0u);
|
||||
lovrPassMipmap(pass, texture, base, count);
|
||||
return 0;
|
||||
|
|
Loading…
Reference in New Issue