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 9564b87c22915505
parent 9446 d7de8d4232c4
child 9565 9f8a2b28f61d
Do not allocate in STRAM if TTRAM allocation is mandatory
src/video/ataricommon/SDL_atarimxalloc.c
     1.1 --- a/src/video/ataricommon/SDL_atarimxalloc.c	Fri Mar 27 23:32:20 2015 +0100
     1.2 +++ b/src/video/ataricommon/SDL_atarimxalloc.c	Fri Apr 17 21:32:45 2015 +0200
     1.3 @@ -47,6 +47,9 @@
     1.4  	if (atari_mxalloc_avail) {
     1.5  		return (void *) Mxalloc(size, alloc_type);
     1.6  	} else {
     1.7 +		if (alloc_type==MX_TTRAM) {
     1.8 +			return NULL;
     1.9 +		}
    1.10  		return (void *) Malloc(size);
    1.11  	}
    1.12  }