Merge pull request #5 from debaetsd/master
fixed invalid bitsPerPixel compare in CanUseSmallAlignment
diff --git a/src/D3D12MemAlloc.cpp b/src/D3D12MemAlloc.cpp
index 67b53ed..6655d33 100644
--- a/src/D3D12MemAlloc.cpp
+++ b/src/D3D12MemAlloc.cpp
@@ -708,7 +708,7 @@
UINT sizeX = (UINT)resourceDesc.Width;
UINT sizeY = resourceDesc.Height;
UINT bitsPerPixel = GetBitsPerPixel(resourceDesc.Format);
- if(GetBitsPerPixel == 0)
+ if(bitsPerPixel == 0)
return false;
if(IsFormatCompressed(resourceDesc.Format))