equal
deleted
inserted
replaced
1 --- src/mesa/main/texstate.c Thu Jun 18 12:47:54 2009 |
|
2 +++ src/mesa/main/texstate.c Thu Jun 18 12:48:54 2009 |
|
3 @@ -429,7 +429,7 @@ |
|
4 } |
|
5 if (texObj->_Complete) { |
|
6 texUnit->_ReallyEnabled = textureBit; |
|
7 - texUnit->_Current = texObj; |
|
8 + _mesa_reference_texobj(&texUnit->_Current, texObj); |
|
9 update_texture_compare_function(ctx, texObj); |
|
10 } |
|
11 } |
|
12 @@ -485,7 +485,6 @@ |
|
13 GLbitfield enableBits; |
|
14 GLuint tex; |
|
15 |
|
16 - texUnit->_Current = NULL; |
|
17 texUnit->_ReallyEnabled = 0; |
|
18 texUnit->_GenFlags = 0; |
|
19 |
|