Skip to content

Commit ba775bf

Browse files
authored
Remove unnecessary ustring lookup (#1824)
Signed-off-by: Chris Hellmuth <chellmuth@gmail.com>
1 parent 0d122e7 commit ba775bf

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/liboslexec/optexture.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -184,8 +184,7 @@ OSL_SHADEOP void
184184
osl_texture_set_interp(void* opt, ustringhash_pod modename_)
185185
{
186186
ustringhash modename_hash = ustringhash_from(modename_);
187-
ustring modename = ustring_from(modename_hash);
188-
int mode = tex_interp_to_code(modename);
187+
int mode = tex_interp_to_code(modename_hash);
189188
if (mode >= 0)
190189
((TextureOpt*)opt)->interpmode = (TextureOpt::InterpMode)mode;
191190
}

0 commit comments

Comments
 (0)