protected override void RenderCore(GraphicsDevice device) { foreach (CanvasLayer layer in Layers) if (layer != null) layer.Render(device); }