This commit is contained in:
Branimir Karadžić 2016-10-28 16:33:17 -07:00
parent 2230c23b76
commit 38a5b5ae44
2 changed files with 3 additions and 3 deletions

View File

@ -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)

View File

@ -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: