From 092eb1eb6f0c2c44b8c80d55bda4c38411aab9f2 Mon Sep 17 00:00:00 2001
From: Christoph Oelckers <coelckers@users.noreply.github.com>
Date: Wed, 1 Jun 2022 18:00:03 +0200
Subject: [PATCH] - use StartupTexture, not HeaderTexture to clear the screen.

HeaderTexture does not exist for the Endoom screen.
---
 src/common/startscreen/startscreen.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/common/startscreen/startscreen.cpp b/src/common/startscreen/startscreen.cpp
index 8943bc485..03e6cddf1 100644
--- a/src/common/startscreen/startscreen.cpp
+++ b/src/common/startscreen/startscreen.cpp
@@ -669,7 +669,7 @@ void FStartScreen::Render(bool force)
 		twod->Begin(screen->GetWidth(), screen->GetHeight());
 
 		// Weird shit moment: Vulkan does not render the screen clear if there isn't something textured in the buffer before it.
-		DrawTexture(twod, HeaderTexture, 0, 0, DTA_VirtualWidthF, HeaderTexture->GetDisplayWidth(), DTA_VirtualHeightF, HeaderTexture->GetDisplayHeight(), DTA_KeepRatio, true, DTA_Color, PalEntry(255,0,0,0), TAG_END);
+		DrawTexture(twod, StartupTexture, 0, 0, DTA_VirtualWidthF, StartupTexture->GetDisplayWidth(), DTA_VirtualHeightF, StartupTexture->GetDisplayHeight(), DTA_KeepRatio, true, DTA_Color, PalEntry(255,0,0,0), TAG_END);
 
 		if (HeaderTexture)
 		{