diff options
author | Daniel Borca <[email protected]> | 2004-01-07 13:58:04 +0000 |
---|---|---|
committer | Daniel Borca <[email protected]> | 2004-01-07 13:58:04 +0000 |
commit | 731852f8a17c39dd0b7be92175621373320bae5d (patch) | |
tree | 9a3ed3ef1acd3b785cf7d068428f7b905b478c32 /src/mesa | |
parent | 6471160770601a5f9b71252549002aa439b4091e (diff) |
bugfix in texture swapping mechanism (multitex)
Diffstat (limited to 'src/mesa')
-rw-r--r-- | src/mesa/drivers/glide/fxtexman.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mesa/drivers/glide/fxtexman.c b/src/mesa/drivers/glide/fxtexman.c index f891657d92a..2f4a855b309 100644 --- a/src/mesa/drivers/glide/fxtexman.c +++ b/src/mesa/drivers/glide/fxtexman.c @@ -197,6 +197,7 @@ fxTMFindStartAddr(fxMesaContext fxMesa, GLint tmu, int size) int result; struct gl_texture_object *obj; + int real_tmu = tmu; if (fxMesa->HaveTexUma) { tmu = FX_TMU0; } @@ -227,7 +228,7 @@ fxTMFindStartAddr(fxMesaContext fxMesa, GLint tmu, int size) if (TDFX_DEBUG & VERBOSE_TEXTURE) { fprintf(stderr, "fxTMFindStartAddr: No free space. Discard oldest\n"); } - obj = fxTMFindOldestObject(fxMesa, tmu); + obj = fxTMFindOldestObject(fxMesa, real_tmu); if (!obj) { fprintf(stderr, "fxTMFindStartAddr: ERROR: No space for texture\n"); return -1; |