Browse Source

Fixed static init order issue.

Branimir Karadžić 8 years ago
parent
commit
1ce463082b
1 changed files with 5 additions and 0 deletions
  1. 5 0
      examples/common/entry/entry.cpp

+ 5 - 0
examples/common/entry/entry.cpp

@@ -944,6 +944,11 @@ restart:
 
 	bx::AllocatorI* getAllocator()
 	{
+		if (NULL == g_allocator)
+		{
+			g_allocator = getDefaultAllocator();
+		}
+
 		return g_allocator;
 	}