Mesa (gallium-mesa-7.4): mesa: add missing _mesa_reference_texobj() calls for texture array targets
Alan Hourihane
alanh at kemper.freedesktop.org
Tue Feb 3 10:17:01 UTC 2009
Module: Mesa
Branch: gallium-mesa-7.4
Commit: 8c4f08fbad0f7060a9635d16f1f7e791db9dea2b
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=8c4f08fbad0f7060a9635d16f1f7e791db9dea2b
Author: Brian Paul <brianp at vmware.com>
Date: Fri Jan 30 16:06:21 2009 -0700
mesa: add missing _mesa_reference_texobj() calls for texture array targets
(cherry picked from master, commit 7c48719a5f22648302bbd0026681770d8cc43914)
---
src/mesa/main/texobj.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/mesa/main/texobj.c b/src/mesa/main/texobj.c
index 7848f0b..c937dac 100644
--- a/src/mesa/main/texobj.c
+++ b/src/mesa/main/texobj.c
@@ -979,11 +979,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:
More information about the mesa-commit
mailing list