Search
lxdream.org :: lxdream :: r328:8da80d8342c5
lxdream 0.9.1
released Jun 29
Download Now
changeset328:8da80d8342c5
parent327:00d55a462af3
child329:4b453d68e9ae
authornkeynes
dateThu Jan 25 12:55:31 2007 +0000 (13 years ago)
Fix mipmap texture address adjust
src/pvr2/texcache.c
1.1 --- a/src/pvr2/texcache.c Thu Jan 25 11:46:35 2007 +0000
1.2 +++ b/src/pvr2/texcache.c Thu Jan 25 12:55:31 2007 +0000
1.3 @@ -1,5 +1,5 @@
1.4 /**
1.5 - * $Id: texcache.c,v 1.21 2007-01-25 10:12:54 nkeynes Exp $
1.6 + * $Id: texcache.c,v 1.22 2007-01-25 12:55:31 nkeynes Exp $
1.7 *
1.8 * Texture cache. Responsible for maintaining a working set of OpenGL
1.9 * textures.
1.10 @@ -451,6 +451,7 @@
1.11 if( level == last_level && level != 0 ) { /* 1x1 stored within a 2x2 */
1.12 glTexImage2D( GL_TEXTURE_2D, level, intFormat, 1, 1, 0, format, type,
1.13 data + (3 << bpp_shift) );
1.14 + texture_addr += mip_bytes;
1.15 } else {
1.16 glTexImage2D( GL_TEXTURE_2D, level, intFormat, mip_width, mip_height, 0, format, type,
1.17 data );
.