mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-08-24 07:26:34 +00:00
Don't return 0-byte BlockShape for error case
* This can lead to divide-by-zero errors, instead return 1x1 1 byte block as a relatively sane default.
This commit is contained in:
@@ -1543,7 +1543,7 @@ BlockShape GetBlockShape(VkFormat Format, uint32_t plane)
|
||||
default: RDCERR("Unrecognised Vulkan Format: %d", Format);
|
||||
}
|
||||
|
||||
return BlockShape();
|
||||
return {1, 1, 1};
|
||||
}
|
||||
|
||||
VkExtent2D GetPlaneShape(uint32_t Width, uint32_t Height, VkFormat Format, uint32_t plane)
|
||||
|
||||
Reference in New Issue
Block a user