Branimir Karadžić il y a 9 ans
Parent
commit
38a5b5ae44
2 fichiers modifiés avec 3 ajouts et 3 suppressions
  1. 1 1
      3rdparty/ocornut-imgui/imgui.h
  2. 2 2
      src/bgfx.cpp

+ 1 - 1
3rdparty/ocornut-imgui/imgui.h

@@ -30,7 +30,7 @@
 #endif
 
 // Some compilers support applying printf-style warnings to user functions.
-#if defined(__clang__) || defined(__GNUC__)
+#if 0 //defined(__clang__) || defined(__GNUC__)
 #define IM_PRINTFARGS(FMT) __attribute__((format(printf, FMT, (FMT+1))))
 #else
 #define IM_PRINTFARGS(FMT)

+ 2 - 2
src/bgfx.cpp

@@ -2513,7 +2513,7 @@ namespace bgfx
 
 		errorState = ErrorState::ContextAllocated;
 
-		s_ctx = BX_ALIGNED_NEW(g_allocator, Context, 16);
+		s_ctx = BX_ALIGNED_NEW(g_allocator, Context, 64);
 		if (s_ctx->init(_type) )
 		{
 			BX_TRACE("Init complete.");
@@ -2526,7 +2526,7 @@ error:
 		switch (errorState)
 		{
 		case ErrorState::ContextAllocated:
-			BX_ALIGNED_DELETE(g_allocator, s_ctx, 16);
+			BX_ALIGNED_DELETE(g_allocator, s_ctx, 64);
 			s_ctx = NULL;
 
 		case ErrorState::Default: