Test bgfx cmake integration
- git clone https://github.com/newpolaris/cmake.bgfx
- cd cmake.bgfx
- git submodule update --init --recursive
- cmake -Bbuild -H. && make -C build/ -j4
- ./build/cubes
Problems
- Can't detect shader header file changes (.sh)
- Can't detect varying.def.sc file changes
Notes for llvm c++ compiler
diff --git a/examples/common/entry/entry.cpp b/examples/common/entry/entry.cpp
index 500f6fc..57d8279 100644
--- a/examples/common/entry/entry.cpp
+++ b/examples/common/entry/entry.cpp
@@ -930,7 +930,7 @@ restart:
bx::AllocatorI* getAllocator()
{
- return g_allocator;
+ return getDefaultAllocator();
}