mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-04-25 07:00:45 +02:00
bugfix in texture swapping mechanism (multitex)
This commit is contained in:
parent
6471160770
commit
731852f8a1
1 changed files with 2 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue