Search
lxdream.org :: lxdream/src/pvr2/rendsave.c :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/pvr2/rendsave.c
changeset 934:3acd3b3ee6d1
prev736:a02d1475ccfd
author nkeynes
date Thu Feb 23 15:24:47 2012 +1000 (10 years ago)
permissions -rw-r--r--
last change Check for existence of glDrawBuffer (assuming that glReadBuffer will
follow). Note only need to guard the common code in gl_fbo.c
file annotate diff log raw
1.1 --- a/src/pvr2/rendsave.c Mon Jul 14 07:44:42 2008 +0000
1.2 +++ b/src/pvr2/rendsave.c Thu Feb 23 15:24:47 2012 +1000
1.3 @@ -31,8 +31,6 @@
1.4 #define SAVE_PAGE_SIZE 1024
1.5 #define SAVE_PAGE_COUNT 8192
1.6
1.7 -extern char *video_base;
1.8 -
1.9 /* Determine pages of memory to save. Start walking from the render tilemap
1.10 * data and build up a page list
1.11 */
1.12 @@ -88,7 +86,7 @@
1.13 uint32_t length = (j-i) * SAVE_PAGE_SIZE;
1.14 fwrite( &start, sizeof(uint32_t), 1, f );
1.15 fwrite( &length, sizeof(uint32_t), 1, f );
1.16 - fwrite( video_base + start, 1, length, f );
1.17 + fwrite( pvr2_main_ram + start, 1, length, f );
1.18 i = j-1;
1.19 }
1.20 }
.