Fixes RenderState cloning issues.