We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0d122e7 commit ba775bfCopy full SHA for ba775bf
1 file changed
src/liboslexec/optexture.cpp
@@ -184,8 +184,7 @@ OSL_SHADEOP void
184
osl_texture_set_interp(void* opt, ustringhash_pod modename_)
185
{
186
ustringhash modename_hash = ustringhash_from(modename_);
187
- ustring modename = ustring_from(modename_hash);
188
- int mode = tex_interp_to_code(modename);
+ int mode = tex_interp_to_code(modename_hash);
189
if (mode >= 0)
190
((TextureOpt*)opt)->interpmode = (TextureOpt::InterpMode)mode;
191
}
0 commit comments