From 1dc0074cacef437a131ce810e646615ed7c15521 Mon Sep 17 00:00:00 2001 From: Boris Shirvinskii Date: Tue, 30 Jun 2020 18:29:07 +0300 Subject: [PATCH] Fixing deallocator --- src/bgfx.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bgfx.cpp b/src/bgfx.cpp index c49c9b36d7..c4e53f8d03 100644 --- a/src/bgfx.cpp +++ b/src/bgfx.cpp @@ -1975,7 +1975,7 @@ namespace bgfx { m_encoder[ii].~EncoderImpl(); } - BX_FREE(g_allocator, m_encoder); + BX_ALIGNED_FREE(g_allocator, m_encoder, 16); BX_FREE(g_allocator, m_encoderStats); m_dynVertexBufferAllocator.compact();