Search
lxdream.org :: lxdream/src/pvr2/texcache.c :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/pvr2/texcache.c
changeset 328:8da80d8342c5
prev324:340f0b0b7af3
next329:4b453d68e9ae
author nkeynes
date Thu Jan 25 12:55:31 2007 +0000 (13 years ago)
permissions -rw-r--r--
last change Fix mipmap texture address adjust
file annotate diff log raw
1.1 --- a/src/pvr2/texcache.c Thu Jan 25 10:12:54 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 );
.