vulkan: delay updating imgui texture when driver has just been reset

Fixes crash when selecting a custom gamepad layout .png (android)
This commit is contained in:
Flyinghead 2024-12-03 20:42:54 +01:00
parent de1584d97c
commit 78fa3ee09e
1 changed files with 3 additions and 0 deletions

View File

@ -88,6 +88,9 @@ public:
ImTextureID updateTexture(const std::string& name, const u8 *data, int width, int height, bool nearestSampling) override
{
if (justStarted)
// give it some more time
return {};
VkTexture vkTex(std::make_unique<Texture>());
vkTex.texture->tex_type = TextureType::_8888;
vkTex.texture->SetCommandBuffer(getCommandBuffer());