Merge pull request #3025 from Tilka/fixfix

VertexLoaderX64: fix 2GB warnings
This commit is contained in:
Ryan Houdek 2015-09-12 01:38:14 -04:00
commit 6d9b4d7d35
2 changed files with 3 additions and 3 deletions

View File

@ -38,10 +38,10 @@ public:
virtual ~CodeBlock() { if (region) FreeCodeSpace(); }
// Call this before you generate any code.
void AllocCodeSpace(int size)
void AllocCodeSpace(int size, bool need_low = true)
{
region_size = size;
region = (u8*)AllocateExecutableMemory(region_size);
region = (u8*)AllocateExecutableMemory(region_size, need_low);
T::SetCodePtr(region);
}

View File

@ -38,7 +38,7 @@ VertexLoaderX64::VertexLoaderX64(const TVtxDesc& vtx_desc, const VAT& vtx_att) :
if (!IsInitialized())
return;
AllocCodeSpace(4096);
AllocCodeSpace(4096, false);
ClearCodeSpace();
GenerateVertexLoader();
WriteProtect();