HydraDriverUpdate.cpp, line 293: ```if (size_t(matId) < g_objManager.scnData.materials.size() && a_pRender->m_updated.texturesUsed.find(matId) == a_pRender->m_updated.texturesUsed.end())``` matId is searched for in the set of texture ids