summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/texobj.c
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2009-01-30 15:34:55 -0700
committerBrian Paul <[email protected]>2009-01-30 15:35:43 -0700
commit7c48719a5f22648302bbd0026681770d8cc43914 (patch)
treedaddafd11fa443469437959d706e453f7a2aa2a5 /src/mesa/main/texobj.c
parent88e0b92a747d9b14885010029133fa1221696e5e (diff)
mesa: add missing _mesa_reference_texobj() calls for texture array targets
Diffstat (limited to 'src/mesa/main/texobj.c')
-rw-r--r--src/mesa/main/texobj.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/main/texobj.c b/src/mesa/main/texobj.c
index 4e6cf439fc1..0fee21c4908 100644
--- a/src/mesa/main/texobj.c
+++ b/src/mesa/main/texobj.c
@@ -984,11 +984,11 @@ _mesa_BindTexture( GLenum target, GLuint texName )
ASSERT(texUnit->CurrentRect);
break;
case GL_TEXTURE_1D_ARRAY_EXT:
- texUnit->Current1DArray = newTexObj;
+ _mesa_reference_texobj(&texUnit->Current1DArray, newTexObj);
ASSERT(texUnit->Current1DArray);
break;
case GL_TEXTURE_2D_ARRAY_EXT:
- texUnit->Current2DArray = newTexObj;
+ _mesa_reference_texobj(&texUnit->Current2DArray, newTexObj);
ASSERT(texUnit->Current2DArray);
break;
default: