mirror of
https://git.suyu.dev/suyu/suyu.git
synced 2024-12-25 09:50:56 +01:00
Made the minimum alignment more clear
This commit is contained in:
parent
c7763603ef
commit
c55b5de0fb
1 changed files with 3 additions and 2 deletions
|
@ -85,8 +85,9 @@ u32 nvmap::IocAlloc(const std::vector<u8>& input, std::vector<u8>& output) {
|
||||||
return static_cast<u32>(NvErrCodes::InvalidValue);
|
return static_cast<u32>(NvErrCodes::InvalidValue);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (params.align < 0x1000) {
|
const u32 min_alignment = 0x1000;
|
||||||
params.align = 0x1000;
|
if (params.align < min_alignment) {
|
||||||
|
params.align = min_alignment;
|
||||||
}
|
}
|
||||||
|
|
||||||
auto object = GetObject(params.handle);
|
auto object = GetObject(params.handle);
|
||||||
|
|
Loading…
Reference in a new issue