1
0
mirror of https://github.com/RPCS3/rpcs3.git synced 2025-02-21 18:39:57 +00:00

d3d12: Fix powerOf2Align

This commit is contained in:
vlj 2015-05-26 00:09:57 +02:00 committed by Vincent Lejeune
parent 10cc2c080c
commit 8ad1bc1970

@ -19,7 +19,7 @@ size_t powerOf2Align(size_t unalignedVal, size_t powerOf2)
{
// check that powerOf2 is power of 2
assert(!(powerOf2 & (powerOf2 - 1)));
return (unalignedVal + powerOf2 - 1) & ~powerOf2;
return (unalignedVal + powerOf2 - 1) & ~(powerOf2 - 1);
}
/**