summaryrefslogtreecommitdiff
path: root/xc/lib/GL/mesa/src/drv/tdfx/tdfx_render.c
diff options
context:
space:
mode:
authorgareth <gareth>2001-03-06 04:37:36 +0000
committergareth <gareth>2001-03-06 04:37:36 +0000
commit86e3f5696de77926473bad2a1d700eb5569f8c6c (patch)
tree809d5c85665de4e74a73f0f3104f0f57385149da /xc/lib/GL/mesa/src/drv/tdfx/tdfx_render.c
parent2819b0e7e1edccbc3ff52b4b90241ac94f78d1e9 (diff)
Merge tdfx-3-1-0 branch.
Diffstat (limited to 'xc/lib/GL/mesa/src/drv/tdfx/tdfx_render.c')
-rw-r--r--xc/lib/GL/mesa/src/drv/tdfx/tdfx_render.c15
1 files changed, 6 insertions, 9 deletions
diff --git a/xc/lib/GL/mesa/src/drv/tdfx/tdfx_render.c b/xc/lib/GL/mesa/src/drv/tdfx/tdfx_render.c
index 97931a351..da60bee16 100644
--- a/xc/lib/GL/mesa/src/drv/tdfx/tdfx_render.c
+++ b/xc/lib/GL/mesa/src/drv/tdfx/tdfx_render.c
@@ -594,16 +594,13 @@ static void uploadTextureImages( tdfxContextPtr fxMesa )
{
GLcontext *ctx = fxMesa->glCtx;
int unit;
- for (unit = 0; unit < TDFX_NUM_TMU; unit++) {
- if (ctx->Texture.Unit[unit].ReallyEnabled == TEXTURE0_2D) {
+ for ( unit = 0 ; unit < TDFX_NUM_TMU ; unit++ ) {
+ if ( ctx->Texture.Unit[unit].ReallyEnabled == TEXTURE0_2D ) {
struct gl_texture_object *tObj = ctx->Texture.Unit[unit].CurrentD[2];
- tdfxTexInfo *ti = TDFX_TEXTURE_DATA(tObj);
- if (ti && ti->reloadImages) {
- /*
- printf("download texture image on unit %d\n", unit);
- */
- tdfxTMDownloadTexture(fxMesa, tObj);
- ti->reloadImages = GL_FALSE;
+ tdfxTexObjPtr t = TDFX_TEXTURE_DATA(tObj);
+ if ( t && t->reloadImages ) {
+ tdfxTMDownloadTextureLocked( fxMesa, tObj );
+ t->reloadImages = GL_FALSE;
}
}
}