Search
lxdream.org :: lxdream/src/pvr2/rendsort.c :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/pvr2/rendsort.c
changeset 865:e10c081f4b81
prev862:d3b2066d5daa
next876:78cd32021472
author nkeynes
date Mon Sep 29 06:34:25 2008 +0000 (11 years ago)
permissions -rw-r--r--
last change Tidy up punchout handling slightly (doesn't really seem to need sorting...)
file annotate diff log raw
1.1 --- a/src/pvr2/rendsort.c Sun Sep 28 00:31:58 2008 +0000
1.2 +++ b/src/pvr2/rendsort.c Mon Sep 29 06:34:25 2008 +0000
1.3 @@ -126,9 +126,8 @@
1.4 if( poly->tex_id != -1 ) {
1.5 glBindTexture(GL_TEXTURE_2D, poly->tex_id);
1.6 }
1.7 - render_set_context( poly->context, RENDER_NORMAL );
1.8 + render_set_context( poly->context, GL_GEQUAL );
1.9 glDepthMask(GL_FALSE);
1.10 - glDepthFunc(GL_GEQUAL);
1.11 /* Fix cull direction */
1.12 if( triangles[i].triangle_num & 1 ) {
1.13 glCullFace(GL_FRONT);
1.14 @@ -158,7 +157,7 @@
1.15 if( num_triangles == 0 ) {
1.16 return; /* nothing to do */
1.17 } else if( num_triangles == 1 ) { /* Triangle can hardly overlap with itself */
1.18 - gl_render_tilelist(tile_entry);
1.19 + gl_render_tilelist(tile_entry, GL_LEQUAL);
1.20 } else { /* Ooh boy here we go... */
1.21 struct sort_triangle triangles[num_triangles+1];
1.22 // Reserve space for num_triangles / 2 * 4 vertexes (maximum possible number of
.