Fix lovr.graphics.getDefaultFilter;
@@ -585,12 +585,9 @@ static int l_lovrGraphicsSetCullingEnabled(lua_State* L) {
static int l_lovrGraphicsGetDefaultFilter(lua_State* L) {
TextureFilter filter = lovrGraphicsGetDefaultFilter();
luax_pushenum(L, FilterModes, filter.mode);
- if (filter.mode == FILTER_ANISOTROPIC) {
lua_pushnumber(L, filter.anisotropy);
return 2;
}
- return 1;
-}
static int l_lovrGraphicsSetDefaultFilter(lua_State* L) {
FilterMode mode = luax_checkenum(L, 1, FilterModes, NULL, "FilterMode");
