Fixed Linux build.
This commit is contained in:
parent
a3b0dde24b
commit
53fb5773a6
@ -53,6 +53,10 @@ After calling make, .build/projects/* directory will be generated. All
|
|||||||
intermediate files generated by compiler will be inside .build directory
|
intermediate files generated by compiler will be inside .build directory
|
||||||
structure. Deleting .build directory at any time is safe.
|
structure. Deleting .build directory at any time is safe.
|
||||||
|
|
||||||
|
### Building for Linux
|
||||||
|
|
||||||
|
sudo apt-get install libgl1-mesa-dev
|
||||||
|
|
||||||
### Building for Windows
|
### Building for Windows
|
||||||
|
|
||||||
When building on Windows, you have to set DXSDK_DIR environment variable to
|
When building on Windows, you have to set DXSDK_DIR environment variable to
|
||||||
|
@ -39,7 +39,7 @@ void dbgPrintfVargs(const char* _format, va_list _argList)
|
|||||||
char temp[8192];
|
char temp[8192];
|
||||||
char* out = temp;
|
char* out = temp;
|
||||||
int32_t len = bx::vsnprintf(out, sizeof(temp), _format, _argList);
|
int32_t len = bx::vsnprintf(out, sizeof(temp), _format, _argList);
|
||||||
if (sizeof(temp) < len)
|
if ( (int32_t)sizeof(temp) < len)
|
||||||
{
|
{
|
||||||
out = (char*)alloca(len+1);
|
out = (char*)alloca(len+1);
|
||||||
len = bx::vsnprintf(out, len, _format, _argList);
|
len = bx::vsnprintf(out, len, _format, _argList);
|
||||||
|
@ -267,7 +267,6 @@ dofile "bgfx.lua"
|
|||||||
dofile "makedisttex.lua"
|
dofile "makedisttex.lua"
|
||||||
dofile "shaderc.lua"
|
dofile "shaderc.lua"
|
||||||
dofile "texturec.lua"
|
dofile "texturec.lua"
|
||||||
dofile "geometryc.lua"
|
|
||||||
dofile "openctm.lua"
|
dofile "openctm.lua"
|
||||||
dofile "example-00-helloworld.lua"
|
dofile "example-00-helloworld.lua"
|
||||||
dofile "example-01-cubes.lua"
|
dofile "example-01-cubes.lua"
|
||||||
|
Loading…
Reference in New Issue
Block a user