Skip to content

Commit

Permalink
Remove unnecessary ustring lookup (AcademySoftwareFoundation#1824)
Browse files Browse the repository at this point in the history
Signed-off-by: Chris Hellmuth <[email protected]>
  • Loading branch information
chellmuth authored Jun 7, 2024
1 parent 0d122e7 commit ba775bf
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/liboslexec/optexture.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -184,8 +184,7 @@ OSL_SHADEOP void
osl_texture_set_interp(void* opt, ustringhash_pod modename_)
{
ustringhash modename_hash = ustringhash_from(modename_);
ustring modename = ustring_from(modename_hash);
int mode = tex_interp_to_code(modename);
int mode = tex_interp_to_code(modename_hash);
if (mode >= 0)
((TextureOpt*)opt)->interpmode = (TextureOpt::InterpMode)mode;
}
Expand Down

0 comments on commit ba775bf

Please sign in to comment.