diff --git a/examples/01-cubes/cubes.cpp b/examples/01-cubes/cubes.cpp index bf1e891b..bd41f75a 100644 --- a/examples/01-cubes/cubes.cpp +++ b/examples/01-cubes/cubes.cpp @@ -89,7 +89,7 @@ static const bgfx::Memory* load(const char* _filePath) static const bgfx::Memory* loadShader(const char* _name, const char* _default = NULL) { - char filePath[_MAX_PATH]; + char filePath[512]; shaderFilePath(filePath, _name); BX_UNUSED(_default); return load(filePath); diff --git a/examples/02-metaballs/metaballs.cpp b/examples/02-metaballs/metaballs.cpp index 269368f2..1f015b3b 100644 --- a/examples/02-metaballs/metaballs.cpp +++ b/examples/02-metaballs/metaballs.cpp @@ -76,7 +76,7 @@ static const bgfx::Memory* load(const char* _filePath) static const bgfx::Memory* loadShader(const char* _name, const char* _default = NULL) { - char filePath[_MAX_PATH]; + char filePath[512]; shaderFilePath(filePath, _name); BX_UNUSED(_default); return load(filePath); @@ -605,9 +605,9 @@ int _main_(int _argc, char** _argv) // Stats. uint32_t numVertices = 0; - int64_t profUpdate; - int64_t profNormal; - int64_t profTriangulate; + int64_t profUpdate = 0; + int64_t profNormal = 0; + int64_t profTriangulate = 0; // Allocate 32K vertices in transient vertex buffer. uint32_t maxVertices = (32<<10); diff --git a/examples/common/math.h b/examples/common/math.h index 432c5159..84731d6a 100644 --- a/examples/common/math.h +++ b/examples/common/math.h @@ -8,6 +8,7 @@ #define _USE_MATH_DEFINES #include +#include inline void vec3Add(float* __restrict _result, const float* __restrict _a, const float* __restrict _b) { diff --git a/makefile b/makefile index 90a28768..2f4250f4 100644 --- a/makefile +++ b/makefile @@ -4,38 +4,38 @@ # all: - premake --file=premake\premake4.lua vs2008 - premake --file=premake\premake4.lua --gcc=nacl gmake - premake --file=premake\premake4.lua --gcc=mingw gmake - premake --file=premake\premake4.lua --gcc=linux gmake + premake --file=premake/premake4.lua vs2008 + premake --file=premake/premake4.lua --gcc=nacl gmake + premake --file=premake/premake4.lua --gcc=mingw gmake + premake --file=premake/premake4.lua --gcc=linux gmake make -s --no-print-directory -C src nacl-debug32: - make -C .build\projects\gmake-nacl config=debug32 + make -C .build/projects/gmake-nacl config=debug32 nacl-release32: - make -C .build\projects\gmake-nacl config=release32 + make -C .build/projects/gmake-nacl config=release32 nacl-debug64: - make -C .build\projects\gmake-nacl config=debug64 + make -C .build/projects/gmake-nacl config=debug64 nacl-release64: - make -C .build\projects\gmake-nacl config=release64 + make -C .build/projects/gmake-nacl config=release64 nacl: nacl-debug32 nacl-release32 nacl-debug64 nacl-release64 mingw-debug32: - make -C .build\projects\gmake-mingw config=debug32 + make -C .build/projects/gmake-mingw config=debug32 mingw-release32: - make -C .build\projects\gmake-mingw config=release32 + make -C .build/projects/gmake-mingw config=release32 mingw-debug64: - make -C .build\projects\gmake-mingw config=debug64 + make -C .build/projects/gmake-mingw config=debug64 mingw-release64: - make -C .build\projects\gmake-mingw config=release64 + make -C .build/projects/gmake-mingw config=release64 mingw: mingw-debug32 mingw-release32 mingw-debug64 mingw-release64 linux-debug32: - make -C .build\projects\gmake-linux config=debug32 + make -C .build/projects/gmake-linux config=debug32 linux-release32: - make -C .build\projects\gmake-linux config=release32 + make -C .build/projects/gmake-linux config=release32 linux-debug64: - make -C .build\projects\gmake-linux config=debug64 + make -C .build/projects/gmake-linux config=debug64 linux-release64: - make -C .build\projects\gmake-linux config=release64 + make -C .build/projects/gmake-linux config=release64 linux: linux-debug32 linux-release32 linux-debug64 linux-release64