projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
88e0b92
)
mesa: add missing _mesa_reference_texobj() calls for texture array targets
author
Brian Paul
<brianp@vmware.com>
Fri, 30 Jan 2009 22:34:55 +0000
(15:34 -0700)
committer
Brian Paul
<brianp@vmware.com>
Fri, 30 Jan 2009 22:35:43 +0000
(15:35 -0700)
src/mesa/main/texobj.c
patch
|
blob
|
history
diff --git
a/src/mesa/main/texobj.c
b/src/mesa/main/texobj.c
index 4e6cf439fc14b009094098fe79f75e8eea1b1f06..0fee21c4908d500b353644eda8b57ec76e15491f 100644
(file)
--- 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: