diff --git a/src/rendering/vulkan/textures/vk_hwtexture.cpp b/src/rendering/vulkan/textures/vk_hwtexture.cpp index 6f077bdab..f7571e1f7 100644 --- a/src/rendering/vulkan/textures/vk_hwtexture.cpp +++ b/src/rendering/vulkan/textures/vk_hwtexture.cpp @@ -323,6 +323,11 @@ int VkHardwareTexture::GetMipLevels(int w, int h) void VkHardwareTexture::AllocateBuffer(int w, int h, int texelsize) { + if (mImage && (mImage->width != w || mImage->height != h || mTexelsize != texelsize)) + { + Reset(); + } + if (!mImage) { auto fb = GetVulkanFrameBuffer();