mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-26 14:01:45 +00:00
- fix vulkan crash when changing resolution when using the software renderer
This commit is contained in:
parent
32aa69f4d8
commit
ea9be6c225
1 changed files with 5 additions and 0 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue