Search
lxdream.org :: lxdream/src/pvr2/glrender.c :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/pvr2/glrender.c
changeset 655:31a4b664d489
prev653:3202ff01d48e
next665:99ae9dc4cab7
author nkeynes
date Tue Apr 01 08:03:56 2008 +0000 (12 years ago)
permissions -rw-r--r--
last change Add support for mirrored textures
file annotate diff log raw
1.1 --- a/src/pvr2/glrender.c Fri Mar 28 12:32:25 2008 +0000
1.2 +++ b/src/pvr2/glrender.c Tue Apr 01 08:03:56 2008 +0000
1.3 @@ -151,11 +151,15 @@
1.4 glTexEnvi( GL_TEXTURE_ENV, GL_TEXTURE_ENV_MODE, pvr2_poly_texblend[POLY2_TEX_BLEND(poly2)] );
1.5 if( POLY2_TEX_CLAMP_U(poly2) ) {
1.6 glTexParameteri( GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_CLAMP );
1.7 + } else if( POLY2_TEX_MIRROR_U(poly2) ) {
1.8 + glTexParameteri( GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_MIRRORED_REPEAT_ARB );
1.9 } else {
1.10 glTexParameteri( GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_REPEAT );
1.11 }
1.12 if( POLY2_TEX_CLAMP_V(poly2) ) {
1.13 glTexParameteri( GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_CLAMP );
1.14 + } else if( POLY2_TEX_MIRROR_V(poly2) ) {
1.15 + glTexParameteri( GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_MIRRORED_REPEAT_ARB );
1.16 } else {
1.17 glTexParameteri( GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_REPEAT );
1.18 }
.