[LargeLocal] Remove incorrect macro (#453)

This commit is contained in:
Edo 2022-08-23 00:05:54 +02:00 committed by GitHub
parent a3776f34c7
commit c0433ce883
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3,7 +3,6 @@
namespace Game::Engine
{
#define PAGE_SIZE 128
#define CanUseServerLargeLocal() (SV_GetServerThreadOwnsGame() ? Sys_IsServerThread() : Sys_IsRenderThread())
LargeLocal::LargeLocal(int sizeParam)
@ -11,7 +10,7 @@ namespace Game::Engine
assert(sizeParam);
assert(Sys_IsMainThread() || CanUseServerLargeLocal());
sizeParam = ((sizeParam + (PAGE_SIZE - 1)) & ~(PAGE_SIZE - 1));
sizeParam = ((sizeParam + (128 - 1)) & ~(128 - 1));
if (Sys_IsMainThread())
{
@ -78,7 +77,7 @@ namespace Game::Engine
{
assert(Sys_IsMainThread() || CanUseServerLargeLocal());
assert(g_largeLocalBuf);
assert(!(size & (PAGE_SIZE - 1)));
assert(!(size & 127));
if (Sys_IsMainThread())
{