diff --git a/lib/mayaHydra/mayaPlugin/renderOverride.cpp b/lib/mayaHydra/mayaPlugin/renderOverride.cpp index 153f6b37bc..f0454fa268 100644 --- a/lib/mayaHydra/mayaPlugin/renderOverride.cpp +++ b/lib/mayaHydra/mayaPlugin/renderOverride.cpp @@ -1089,8 +1089,8 @@ MStatus MtohRenderOverride::Render( } // Toggle textures in the material network - const unsigned int currentTextureMode = drawContext.getDisplayStyle(); - bool isTextured = currentTextureMode & MHWRender::MFrameContext::kTextured; + const unsigned int currentDisplayMode = drawContext.getDisplayStyle(); + bool isTextured = currentDisplayMode & MHWRender::MFrameContext::kTextured; if (_pruneTexturesSceneIndex && _currentlyTextured != isTextured) { _pruneTexturesSceneIndex->MarkTexturesDirty(isTextured);