Render target textures don't have mipmaps by default;

This commit is contained in:
bjorn 2022-09-21 21:18:32 -07:00
parent 952bff414a
commit dd336b7473
1 changed files with 1 additions and 1 deletions

View File

@ -993,7 +993,7 @@ static int l_lovrGraphicsNewTexture(lua_State* L) {
} else if (!lua_isnil(L, -1)) {
info.mipmaps = lua_toboolean(L, -1) ? ~0u : 1;
} else {
info.mipmaps = info.samples > 1 ? 1 : ~0u;
info.mipmaps = (info.samples > 1 || info.imageCount == 0) ? 1 : ~0u;
}
lua_pop(L, 1);