summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/mesa/main/texstate.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/mesa/main/texstate.c b/src/mesa/main/texstate.c
index 5d53e359107..672a125bf1b 100644
--- a/src/mesa/main/texstate.c
+++ b/src/mesa/main/texstate.c
@@ -554,7 +554,6 @@ update_texture_state( GLcontext *ctx )
continue;
}
- texUnit->_Current = NULL;
texUnit->_ReallyEnabled = 0x0;
/* Look for the highest priority texture target that's enabled (or used
@@ -571,7 +570,7 @@ update_texture_state( GLcontext *ctx )
}
if (texObj->_Complete) {
texUnit->_ReallyEnabled = 1 << texIndex;
- texUnit->_Current = texObj;
+ _mesa_reference_texobj(&texUnit->_Current, texObj);
break;
}
}