diff options
author | Jordan Crouse <jordan@cosmicpenguin.net> | 2008-11-18 15:41:58 -0700 |
---|---|---|
committer | Jordan Crouse <jordan@cosmicpenguin.net> | 2008-11-18 15:44:05 -0700 |
commit | ee23fd75f5eb4447ca238694cc03fcdc219ee245 (patch) | |
tree | 737bc6919b60f4150ca77a3c8dd07c0c2f3042d8 /src/lx_memory.c | |
parent | aac2e161818494b88677f11115bca890a552c709 (diff) |
LX: Fix the memory allocated by the video so it fails
when there isn't enough memory.
Diffstat (limited to 'src/lx_memory.c')
-rw-r--r-- | src/lx_memory.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lx_memory.c b/src/lx_memory.c index 9ec8c2b..9964c8e 100644 --- a/src/lx_memory.c +++ b/src/lx_memory.c @@ -136,7 +136,7 @@ GeodeAllocOffscreen(GeodeRec * pGeode, int size, int align) unsigned int gap; if (ptr->next == NULL) - gap = pGeode->offscreenSize; + gap = pGeode->offscreenSize + pGeode->offscreenStart; else gap = ptr->next->offset; |