mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-04-21 03:55:32 +00:00
d3d12: Fix powerOf2Align
This commit is contained in:
parent
10cc2c080c
commit
8ad1bc1970
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Reference in a new issue