public void ReplaceRenderItem(RenderItem oldItem, RenderItem newItem) { int index = RenderQueue.IndexOf(oldItem); RenderQueue.Remove(oldItem); RenderQueue.Insert(index, newItem); CallDirty(); }