From a94a3938dcde425ece90a084d5c7607bf33904a6 Mon Sep 17 00:00:00 2001 From: Colin McMillen Date: Thu, 6 Jul 2023 18:39:17 -0400 Subject: [PATCH] add blank white texture --- Program.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Program.cs b/Program.cs index 6f86fe0..d9f7883 100644 --- a/Program.cs +++ b/Program.cs @@ -191,6 +191,7 @@ public class Game : GameWindow { static CameraInfo activeCamera = CameraInfo.NIKON_D7000; static int thumbnailHeight = 100; static int thumbnailWidth = (int) 1.0 * thumbnailHeight * activeCamera.Resolution.X / activeCamera.Resolution.Y; + static Texture TEXTURE_WHITE; int windowWidth; int windowHeight; @@ -280,6 +281,11 @@ public class Game : GameWindow { textures.Add(new Texture(image)); } } + + // Load blank white texture. + Image white1x1 = new Image(1, 1, new Rgba32(255, 255, 255)); + TEXTURE_WHITE = new Texture(white1x1); + textures.Add(TEXTURE_WHITE); // FIXME: remove } protected override void OnUnload() {