Search
lxdream.org :: lxdream/src/pvr2/scene.c :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/pvr2/scene.c
changeset 669:ab344e42bca9
prev667:0e1ac8da75d9
next677:3ee62740ff8f
author nkeynes
date Mon May 12 10:00:13 2008 +0000 (13 years ago)
permissions -rw-r--r--
last change Cleanup most of the -Wall warnings (getting a bit sloppy...)
Convert FP code to use fixed banks rather than indirect pointer
(3-4% faster this way now)
file annotate diff log raw
1.1 --- a/src/pvr2/scene.c Sat Apr 19 02:39:37 2008 +0000
1.2 +++ b/src/pvr2/scene.c Mon May 12 10:00:13 2008 +0000
1.3 @@ -54,7 +54,10 @@
1.4 struct pvr2_scene_struct pvr2_scene;
1.5
1.6 static gboolean vbo_init = FALSE;
1.7 +
1.8 +#ifdef ENABLE_VERTEX_BUFFER
1.9 static gboolean vbo_supported = FALSE;
1.10 +#endif
1.11
1.12 /**
1.13 * Test for VBO support, and allocate all the system memory needed for the
1.14 @@ -618,7 +621,7 @@
1.15 fprintf( f, "Polygons: %d\n", pvr2_scene.poly_count );
1.16 for( i=0; i<pvr2_scene.poly_count; i++ ) {
1.17 struct polygon_struct *poly = &pvr2_scene.poly_array[i];
1.18 - fprintf( f, " %08X ", ((char *)poly->context) - video_base );
1.19 + fprintf( f, " %08X ", ((unsigned char *)poly->context) - video_base );
1.20 switch( poly->vertex_count ) {
1.21 case 3: fprintf( f, "Tri " ); break;
1.22 case 4: fprintf( f, "Quad " ); break;
.