Surface.h rm thread unsafe version of setMaterialLayer, move the const_cast to the one remaining code that actually needs them
Surface.h rm thread unsafe version of setMaterialLayer, move the const_cast to the one remaining code that actually needs them
Mentioning @sroe