Mesa (gallium-mesa-7.4): mesa: remove incorrect refcounting adjustment in adjust_buffer_object_ref_counts ()

Alan Hourihane alanh at kemper.freedesktop.org
Tue Feb 3 10:17:00 UTC 2009


Module: Mesa
Branch: gallium-mesa-7.4
Commit: f3081a34d222775cb688206805747832bba10d71
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=f3081a34d222775cb688206805747832bba10d71

Author: Brian Paul <brianp at vmware.com>
Date:   Fri Jan 30 16:05:51 2009 -0700

mesa: remove incorrect refcounting adjustment in adjust_buffer_object_ref_counts()

Fixes bug 19835.  However, a more elaborate fix should be implemented someday
which uses proper reference counting for gl_array_object.

(cherry picked from master, commit 88e0b92a747d9b14885010029133fa1221696e5e)

---

 src/mesa/main/attrib.c |    3 ---
 1 files changed, 0 insertions(+), 3 deletions(-)

diff --git a/src/mesa/main/attrib.c b/src/mesa/main/attrib.c
index 825c841..f77d331 100644
--- a/src/mesa/main/attrib.c
+++ b/src/mesa/main/attrib.c
@@ -1275,9 +1275,6 @@ adjust_buffer_object_ref_counts(struct gl_array_attrib *array, GLint step)
       array->ArrayObj->TexCoord[i].BufferObj->RefCount += step;
    for (i = 0; i < VERT_ATTRIB_MAX; i++)
       array->ArrayObj->VertexAttrib[i].BufferObj->RefCount += step;
-
-   array->ArrayBufferObj->RefCount += step;
-   array->ElementArrayBufferObj->RefCount += step;
 }
 
 




More information about the mesa-commit mailing list