Merge pull request #517 from gonsolo/unused

Remove unused filterOptions.
This commit is contained in:
Matt Pharr 2025-10-23 11:56:13 -07:00 • committed by GitHub
commit 8de4354af0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1086,13 +1086,6 @@ GPUSpectrumImageTexture *GPUSpectrumImageTexture::Create(
// Initialize _ImageTexture_ parameters // Initialize _ImageTexture_ parameters
Float maxAniso = parameters.GetOneFloat("maxanisotropy", 8.f); Float maxAniso = parameters.GetOneFloat("maxanisotropy", 8.f);
std::string filter = parameters.GetOneString("filter", "bilinear"); std::string filter = parameters.GetOneString("filter", "bilinear");
MIPMapFilterOptions filterOptions;
filterOptions.maxAnisotropy = maxAniso;
pstd::optional<FilterFunction> ff = ParseFilter(filter);
if (ff)
filterOptions.filter = *ff;
else
Error(loc, "%s: filter function unknown", filter);
std::string wrapString = parameters.GetOneString("wrap", "repeat"); std::string wrapString = parameters.GetOneString("wrap", "repeat");
pstd::optional<WrapMode> wrapMode = ParseWrapMode(wrapString.c_str()); pstd::optional<WrapMode> wrapMode = ParseWrapMode(wrapString.c_str());