video_core: vulkan: Fix crash on color fill before framebuffer setup (#2241)

This commit is contained in:
Filipe Fortunato 2026-07-01 20:32:38 +02:00 committed by GitHub
parent 307f558d28
commit 384913be70
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -660,6 +660,11 @@ void RendererVulkan::ConfigureFramebufferTexture(TextureInfo& texture,
} }
void RendererVulkan::FillScreen(Common::Vec3<u8> color, const TextureInfo& texture) { void RendererVulkan::FillScreen(Common::Vec3<u8> color, const TextureInfo& texture) {
// When loading some 3GX extensions, FillScreen may be called before texture image is available
if (!texture.image) {
return;
}
const vk::ClearColorValue clear_color = { const vk::ClearColorValue clear_color = {
.float32 = .float32 =
std::array{ std::array{