revision 328:8da80d8342c5
summary |
tree |
shortlog |
changelog |
graph |
changeset |
raw | bz2 | zip | gz changeset | 328:8da80d8342c5 |
parent | 327:00d55a462af3 |
child | 329:4b453d68e9ae |
author | nkeynes |
date | Thu Jan 25 12:55:31 2007 +0000 (17 years ago) |
Fix mipmap texture address adjust
1.1 --- a/src/pvr2/texcache.c Thu Jan 25 11:46:35 2007 +00001.2 +++ b/src/pvr2/texcache.c Thu Jan 25 12:55:31 2007 +00001.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 OpenGL1.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 );
.