[LargeLocal] Remove incorrect macro (#453)
This commit is contained in:
parent
a3776f34c7
commit
c0433ce883
@ -3,7 +3,6 @@
|
|||||||
|
|
||||||
namespace Game::Engine
|
namespace Game::Engine
|
||||||
{
|
{
|
||||||
#define PAGE_SIZE 128
|
|
||||||
#define CanUseServerLargeLocal() (SV_GetServerThreadOwnsGame() ? Sys_IsServerThread() : Sys_IsRenderThread())
|
#define CanUseServerLargeLocal() (SV_GetServerThreadOwnsGame() ? Sys_IsServerThread() : Sys_IsRenderThread())
|
||||||
|
|
||||||
LargeLocal::LargeLocal(int sizeParam)
|
LargeLocal::LargeLocal(int sizeParam)
|
||||||
@ -11,7 +10,7 @@ namespace Game::Engine
|
|||||||
assert(sizeParam);
|
assert(sizeParam);
|
||||||
assert(Sys_IsMainThread() || CanUseServerLargeLocal());
|
assert(Sys_IsMainThread() || CanUseServerLargeLocal());
|
||||||
|
|
||||||
sizeParam = ((sizeParam + (PAGE_SIZE - 1)) & ~(PAGE_SIZE - 1));
|
sizeParam = ((sizeParam + (128 - 1)) & ~(128 - 1));
|
||||||
|
|
||||||
if (Sys_IsMainThread())
|
if (Sys_IsMainThread())
|
||||||
{
|
{
|
||||||
@ -78,7 +77,7 @@ namespace Game::Engine
|
|||||||
{
|
{
|
||||||
assert(Sys_IsMainThread() || CanUseServerLargeLocal());
|
assert(Sys_IsMainThread() || CanUseServerLargeLocal());
|
||||||
assert(g_largeLocalBuf);
|
assert(g_largeLocalBuf);
|
||||||
assert(!(size & (PAGE_SIZE - 1)));
|
assert(!(size & 127));
|
||||||
|
|
||||||
if (Sys_IsMainThread())
|
if (Sys_IsMainThread())
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user