mirror of
https://github.com/Lime3DS/Lime3DS.git
synced 2026-07-09 17:24:49 -06:00
video_core: vulkan: Fix crash on color fill before framebuffer setup (#2241)
This commit is contained in:
parent
307f558d28
commit
384913be70
@ -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{
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user