Search
lxdream.org :: lxdream/src/pvr2/render.c :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/pvr2/render.c
changeset 331:a6048d3a9a79
prev322:354407942957
next333:e29561c998f5
author nkeynes
date Fri Jan 26 01:37:39 2007 +0000 (13 years ago)
permissions -rw-r--r--
last change Z should be rendered as 1/Z - fixes a host of depth issues
file annotate diff log raw
1.1 --- a/src/pvr2/render.c Thu Jan 25 08:18:03 2007 +0000
1.2 +++ b/src/pvr2/render.c Fri Jan 26 01:37:39 2007 +0000
1.3 @@ -1,5 +1,5 @@
1.4 /**
1.5 - * $Id: render.c,v 1.19 2007-01-25 08:18:03 nkeynes Exp $
1.6 + * $Id: render.c,v 1.20 2007-01-26 01:37:39 nkeynes Exp $
1.7 *
1.8 * PVR2 Renderer support. This part is primarily
1.9 *
1.10 @@ -186,7 +186,7 @@
1.11 glViewport( 0, 0, width, height );
1.12 glMatrixMode(GL_PROJECTION);
1.13 glLoadIdentity();
1.14 - glOrtho( 0, width, height, 0, bgplanez, -(nearz+1) );
1.15 + glOrtho( 0, width, height, 0, -bgplanez, -nearz );
1.16 glMatrixMode(GL_MODELVIEW);
1.17 glLoadIdentity();
1.18 glCullFace( GL_BACK );
1.19 @@ -225,7 +225,7 @@
1.20 render_to_tex = FALSE;
1.21 }
1.22
1.23 - float bgplanez = MMIO_READF( PVR2, RENDER_FARCLIP );
1.24 + float bgplanez = 1/MMIO_READF( PVR2, RENDER_FARCLIP );
1.25 uint32_t render_mode = MMIO_READ( PVR2, RENDER_MODE );
1.26 int width = 640; /* FIXME - get this from the tile buffer */
1.27 int height = 480;
.