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:
parent
de1584d97c
commit
78fa3ee09e
|
@ -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());
|
||||
|
|
Loading…
Reference in New Issue