--- Mesa-7.4.2/src/mesa/main/texstate.c~ 2009-05-11 16:46:29.000000000 +0100 +++ Mesa-7.4.2/src/mesa/main/texstate.c 2009-05-19 08:23:16.000000000 +0100 @@ -429,7 +429,7 @@ } if (texObj->_Complete) { texUnit->_ReallyEnabled = textureBit; - texUnit->_Current = texObj; + _mesa_reference_texobj(&texUnit->_Current, texObj); update_texture_compare_function(ctx, texObj); } }