finally fix laptop build
This commit is contained in:
@@ -49,8 +49,9 @@ namespace Game
|
||||
long fileSize = ftell(file);
|
||||
fseek(file, 0, SEEK_SET);
|
||||
|
||||
void* rawMem = AllocateScratch(fileSize + 1);
|
||||
const bgfx::Memory* mem = bgfx::makeRef(rawMem, fileSize + 1);
|
||||
long fileSizeX = appendZero ? fileSize + 1 : fileSize;
|
||||
void* rawMem = AllocateScratch(fileSizeX);
|
||||
const bgfx::Memory* mem = bgfx::makeRef(rawMem, fileSizeX);
|
||||
fread(mem->data, 1, fileSize, file);
|
||||
if (appendZero)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user