- Fixed compilation with MinGW and did some cleanup.
This commit is contained in:
parent
e6aaab3c32
commit
68f338b134
5 changed files with 16 additions and 42 deletions
|
|
@ -78,7 +78,7 @@ void RenderMemory::Clear()
|
|||
static void* Aligned_Alloc(size_t alignment, size_t size)
|
||||
{
|
||||
void* ptr;
|
||||
#if defined _MSC_VER
|
||||
#if defined (_MSC_VER) || defined (__MINGW32__)
|
||||
ptr = _aligned_malloc(size, alignment);
|
||||
if (!ptr)
|
||||
throw std::bad_alloc();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue