From 78f6e8dd8816f8bbfe46919f2cc9d63c8ab905e0 Mon Sep 17 00:00:00 2001
From: John Mitchell <startoaster23@gmail.com>
Date: Sun, 13 Nov 2022 21:24:47 -0500
Subject: [PATCH] Fixed missing clear pass.

---
 examples/text.rs | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/examples/text.rs b/examples/text.rs
index 8b3a414..b2f82d3 100644
--- a/examples/text.rs
+++ b/examples/text.rs
@@ -65,6 +65,10 @@ fn startup(
     mut font_mapping: ResMut<FontMapping>,
     asset_server: Res<AssetServer>,
 ) {
+    // Camera 2D forces a clear pass in bevy.
+    // We do this because our scene is not rendering anything else.
+    commands.spawn(Camera2dBundle::default());
+
     font_mapping.set_default(asset_server.load("roboto.kayak_font"));
 
     let mut widget_context = KayakRootContext::new();
-- 
GitLab