Do not allocate in STRAM if TTRAM allocation is mandatory SDL-1.2
authorPatrice Mandin <patmandin@gmail.com>
Fri, 17 Apr 2015 21:32:45 +0200
branchSDL-1.2
changeset 9564 b87c22915505
parent 9446 d7de8d4232c4
child 9565 9f8a2b28f61d
Do not allocate in STRAM if TTRAM allocation is mandatory
src/video/ataricommon/SDL_atarimxalloc.c
--- a/src/video/ataricommon/SDL_atarimxalloc.c	Fri Mar 27 23:32:20 2015 +0100
+++ b/src/video/ataricommon/SDL_atarimxalloc.c	Fri Apr 17 21:32:45 2015 +0200
@@ -47,6 +47,9 @@
 	if (atari_mxalloc_avail) {
 		return (void *) Mxalloc(size, alloc_type);
 	} else {
+		if (alloc_type==MX_TTRAM) {
+			return NULL;
+		}
 		return (void *) Malloc(size);
 	}
 }