Skip to content

newpolaris/cmake.bgfx

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Test bgfx cmake integration

  1. git clone https://github.com/newpolaris/cmake.bgfx
  2. cd cmake.bgfx
  3. git submodule update --init --recursive
  4. cmake -Bbuild -H. && make -C build/ -j4
  5. ./build/cubes

Problems

  1. Can't detect shader header file changes (.sh)
  2. Can't detect varying.def.sc file changes

Notes for llvm c++ compiler

bkaradzic/bgfx#1290

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();
        }

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published