Skip to content

Commit 14abed7

Browse files
authored
Merge pull request #519 from gonsolo/unused2
Remove unused variable.
2 parents c70b867 + 18b7c2a commit 14abed7

1 file changed

Lines changed: 0 additions & 7 deletions

File tree

src/pbrt/textures.cpp

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1336,13 +1336,6 @@ GPUFloatImageTexture *GPUFloatImageTexture::Create(
13361336
// Initialize _ImageTexture_ parameters
13371337
Float maxAniso = parameters.GetOneFloat("maxanisotropy", 8.f);
13381338
std::string filter = parameters.GetOneString("filter", "bilinear");
1339-
MIPMapFilterOptions filterOptions;
1340-
filterOptions.maxAnisotropy = maxAniso;
1341-
pstd::optional<FilterFunction> ff = ParseFilter(filter);
1342-
if (ff)
1343-
filterOptions.filter = *ff;
1344-
else
1345-
Error(loc, "%s: filter function unknown", filter);
13461339

13471340
std::string wrapString = parameters.GetOneString("wrap", "repeat");
13481341
pstd::optional<WrapMode> wrapMode = ParseWrapMode(wrapString.c_str());

0 commit comments

Comments
 (0)