Search
lxdream.org :: lxdream/src/pvr2/glrender.c :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/pvr2/glrender.c
changeset 1139:9af81878480b
prev1138:3bcb705a7ebc
next1140:7dc1c71ece76
author nkeynes
date Sun Oct 24 15:22:59 2010 +1000 (10 years ago)
permissions -rw-r--r--
last change Eliminate GL_REPLACE tex mode in favour of GL_MODULATE (by setting colour
values to 1.0) - one less case for shaders to care about later
file annotate diff log raw
1.1 --- a/src/pvr2/glrender.c Sun Oct 24 15:15:27 2010 +1000
1.2 +++ b/src/pvr2/glrender.c Sun Oct 24 15:22:59 2010 +1000
1.3 @@ -147,7 +147,10 @@
1.4 {
1.5 glShadeModel( POLY1_SHADE_MODEL(poly1) );
1.6 if( POLY1_TEXTURED(poly1) ) {
1.7 - glTexEnvi( GL_TEXTURE_ENV, GL_TEXTURE_ENV_MODE, pvr2_poly_texblend[POLY2_TEX_BLEND(poly2)] );
1.8 + if( POLY2_TEX_BLEND(poly2) == 2 )
1.9 + glTexEnvi( GL_TEXTURE_ENV, GL_TEXTURE_ENV_MODE, GL_DECAL );
1.10 + else
1.11 + glTexEnvi( GL_TEXTURE_ENV, GL_TEXTURE_ENV_MODE, GL_MODULATE );
1.12 }
1.13
1.14 switch( POLY2_FOG_MODE(poly2) ) {
.