Search
lxdream.org :: lxdream/src/pvr2/rendsort.c :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/pvr2/rendsort.c
changeset 1138:3bcb705a7ebc
prev1137:4799d64b3478
next1143:8ec0f1f990aa
author nkeynes
date Sun Oct 24 15:15:27 2010 +1000 (10 years ago)
permissions -rw-r--r--
last change Bind texture 0 instead of enabling/disabling texturing all the time
(marginally faster, but also simpler)
file annotate diff log raw
1.1 --- a/src/pvr2/rendsort.c Sun Oct 24 13:40:52 2010 +1000
1.2 +++ b/src/pvr2/rendsort.c Sun Oct 24 15:15:27 2010 +1000
1.3 @@ -156,9 +156,7 @@
1.4 int i;
1.5 for( i=0; i<num_triangles; i++ ) {
1.6 struct polygon_struct *poly = triangles[i]->poly;
1.7 - if( poly->tex_id != -1 ) {
1.8 - glBindTexture(GL_TEXTURE_2D, poly->tex_id);
1.9 - }
1.10 + glBindTexture(GL_TEXTURE_2D, poly->tex_id);
1.11 render_set_tsp_context( poly->context[0], poly->context[1] );
1.12 glDrawArrays(GL_TRIANGLE_STRIP, poly->vertex_index + triangles[i]->triangle_num, 3 );
1.13 }
.