Search
lxdream.org :: lxdream/src/pvr2/pvr2.c :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/pvr2/pvr2.c
changeset 511:e02fb1af6fff
prev502:c4ecae2b1b5e
next545:fdcdcd8b9fd1
author nkeynes
date Wed Nov 14 10:23:28 2007 +0000 (12 years ago)
permissions -rw-r--r--
last change Fix validation of render buffer count when loading save state
file annotate diff log raw
1.1 --- a/src/pvr2/pvr2.c Thu Nov 08 11:54:16 2007 +0000
1.2 +++ b/src/pvr2/pvr2.c Wed Nov 14 10:23:28 2007 +0000
1.3 @@ -1,5 +1,5 @@
1.4 /**
1.5 - * $Id: pvr2.c,v 1.49 2007-11-08 11:54:16 nkeynes Exp $
1.6 + * $Id: pvr2.c,v 1.50 2007-11-14 10:23:28 nkeynes Exp $
1.7 *
1.8 * PVR2 (Video) Core module implementation and MMIO registers.
1.9 *
1.10 @@ -239,7 +239,7 @@
1.11 int i, has_frontbuffer;
1.12
1.13 fread( &count, sizeof(count), 1, f );
1.14 - if( count >= MAX_RENDER_BUFFERS ) {
1.15 + if( count > MAX_RENDER_BUFFERS ) {
1.16 return FALSE;
1.17 }
1.18 fread( &has_frontbuffer, sizeof(has_frontbuffer), 1, f );
.