Merge pull request #519 from gonsolo/unused2

Remove unused variable.
This commit is contained in:
Matt Pharr 2025-10-23 11:54:47 -07:00 • committed by GitHub
commit 14abed7519
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1336,13 +1336,6 @@ GPUFloatImageTexture *GPUFloatImageTexture::Create(
// Initialize _ImageTexture_ parameters
Float maxAniso = parameters.GetOneFloat("maxanisotropy", 8.f);
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");
pstd::optional<WrapMode> wrapMode = ParseWrapMode(wrapString.c_str());