Merge branch 'master' of github.com:bkaradzic/bgfx
This commit is contained in:
Коммит
772c671752
|
@ -80,7 +80,8 @@ static const bgfx::Memory* load(const char* _filePath)
|
|||
{
|
||||
uint32_t size = (uint32_t)fsize(file);
|
||||
const bgfx::Memory* mem = bgfx::alloc(size+1);
|
||||
fread(mem->data, 1, size, file);
|
||||
size_t ignore = fread(mem->data, 1, size, file);
|
||||
BX_UNUSED(ignore);
|
||||
fclose(file);
|
||||
mem->data[mem->size-1] = '\0';
|
||||
return mem;
|
||||
|
|
|
@ -65,7 +65,8 @@ static const bgfx::Memory* load(const char* _filePath)
|
|||
{
|
||||
uint32_t size = (uint32_t)fsize(file);
|
||||
const bgfx::Memory* mem = bgfx::alloc(size+1);
|
||||
fread(mem->data, 1, size, file);
|
||||
size_t ignore = fread(mem->data, 1, size, file);
|
||||
BX_UNUSED(ignore);
|
||||
fclose(file);
|
||||
mem->data[mem->size-1] = '\0';
|
||||
return mem;
|
||||
|
|
|
@ -55,7 +55,8 @@ static const bgfx::Memory* load(const char* _filePath)
|
|||
{
|
||||
uint32_t size = (uint32_t)fsize(file);
|
||||
const bgfx::Memory* mem = bgfx::alloc(size+1);
|
||||
fread(mem->data, 1, size, file);
|
||||
size_t ignore = fread(mem->data, 1, size, file);
|
||||
BX_UNUSED(ignore);
|
||||
fclose(file);
|
||||
mem->data[mem->size-1] = '\0';
|
||||
return mem;
|
||||
|
|
|
@ -44,7 +44,8 @@ static const bgfx::Memory* load(const char* _filePath)
|
|||
{
|
||||
uint32_t size = (uint32_t)fsize(file);
|
||||
const bgfx::Memory* mem = bgfx::alloc(size+1);
|
||||
fread(mem->data, 1, size, file);
|
||||
size_t ignore = fread(mem->data, 1, size, file);
|
||||
BX_UNUSED(ignore);
|
||||
fclose(file);
|
||||
mem->data[mem->size-1] = '\0';
|
||||
return mem;
|
||||
|
|
|
@ -6,6 +6,7 @@ project "example-04-mesh"
|
|||
|
||||
defines {
|
||||
"OPENCTM_STATIC",
|
||||
"OPENCTM_NO_CPP",
|
||||
}
|
||||
|
||||
includedirs {
|
||||
|
|
|
@ -6,6 +6,7 @@ project "openctm"
|
|||
|
||||
defines {
|
||||
"OPENCTM_STATIC",
|
||||
"OPENCTM_NO_CPP",
|
||||
}
|
||||
|
||||
includedirs {
|
||||
|
|
Загрузка…
Ссылка в новой задаче