Skip to content

Commit

Permalink
Do not allocate in STRAM if TTRAM allocation is mandatory
Browse files Browse the repository at this point in the history
  • Loading branch information
pmandin committed Apr 17, 2015
1 parent 84e079c commit 7033d9f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/video/ataricommon/SDL_atarimxalloc.c
Expand Up @@ -47,6 +47,9 @@ void *Atari_SysMalloc(Uint32 size, Uint16 alloc_type)
if (atari_mxalloc_avail) {
return (void *) Mxalloc(size, alloc_type);
} else {
if (alloc_type==MX_TTRAM) {
return NULL;
}
return (void *) Malloc(size);
}
}

0 comments on commit 7033d9f

Please sign in to comment.