mirror of
https://github.com/GPUOpen-LibrariesAndSDKs/D3D12MemoryAllocator.git
synced 2024-11-21 19:50:05 +00:00
Fixed bug in CanUseSmallAlignment function
Thanks @danielkrupinski !
This commit is contained in:
parent
0e558a5577
commit
721d65a5a4
@ -708,8 +708,8 @@ static bool CanUseSmallAlignment(const D3D12_RESOURCE_DESC_T& resourceDesc)
|
||||
|
||||
if(IsFormatCompressed(resourceDesc.Format))
|
||||
{
|
||||
sizeX = DivideRoundingUp(sizeX / 4, 1u);
|
||||
sizeY = DivideRoundingUp(sizeY / 4, 1u);
|
||||
sizeX = DivideRoundingUp(sizeX, 4u);
|
||||
sizeY = DivideRoundingUp(sizeY, 4u);
|
||||
bitsPerPixel *= 16;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user