Search
lxdream.org :: lxdream :: r684:95f2068235ef
lxdream 0.9.1
released Jun 29
Download Now
changeset684:95f2068235ef
parent683:2b6ed6ecbeb7
child685:fa1589b42be7
authornkeynes
dateSun Jun 01 08:58:46 2008 +0000 (11 years ago)
Tweak far-clip-plane to cope with borderline vertexes
src/pvr2/glrender.c
1.1 --- a/src/pvr2/glrender.c Sun Jun 01 01:08:00 2008 +0000
1.2 +++ b/src/pvr2/glrender.c Sun Jun 01 08:58:46 2008 +0000
1.3 @@ -258,7 +258,7 @@
1.4 farz*= 2.0;
1.5 }
1.6 glOrtho( 0, pvr2_scene.buffer_width, pvr2_scene.buffer_height, 0,
1.7 - -farz, -nearz );
1.8 + -farz-1, -nearz );
1.9 float alphaRef = ((float)(MMIO_READ(PVR2, RENDER_ALPHA_REF)&0xFF)+1)/256.0;
1.10 glAlphaFunc( GL_GEQUAL, alphaRef );
1.11
.