Pass:mipmap base mipmap index is 1-indexed;

This commit is contained in:
bjorn 2022-09-10 10:14:46 -07:00
parent 7851f49910
commit ee809ec31a
1 changed files with 1 additions and 1 deletions

View File

@ -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;