mesa: Branch 'master' - 3 commits

Brian Paul brianp at kemper.freedesktop.org
Fri Jan 5 15:42:56 UTC 2007


 docs/relnotes-6.5.3.html |    1 +
 src/mesa/main/attrib.c   |   17 +++++++++++++++--
 2 files changed, 16 insertions(+), 2 deletions(-)

New commits:
diff-tree b530d96216f8a01e2dd4100941f6b1aa4d9dfbcd (from parents)
Merge: 24cf67fc733be7327202e934443b3469d053e41e 16f0efca605600bdac83898f1505af99c4c71048
Author: Brian <brian at yutani.localnet.net>
Date:   Fri Jan 5 08:42:45 2007 -0700

    Merge branch 'master' of git+ssh://brianp@git.freedesktop.org/git/mesa/mesa

diff-tree 24cf67fc733be7327202e934443b3469d053e41e (from 7da7404fdf1be778534d2d155072114e3f92226a)
Author: Brian <brian at yutani.localnet.net>
Date:   Fri Jan 5 08:41:16 2007 -0700

    document VBO bug fix 9445

diff --git a/docs/relnotes-6.5.3.html b/docs/relnotes-6.5.3.html
index e25e480..cc3df08 100644
--- a/docs/relnotes-6.5.3.html
+++ b/docs/relnotes-6.5.3.html
@@ -29,6 +29,7 @@ TBD
 <h2>Bug fixes</h2>
 <ul>
 <li>Fog was errantly applied when a fragment shader was enabled (bug 9346)
+<li>glPush/PopClientAttrib didn't handle VBO bindings correctly (bug 9445)
 </ul>
 
 
diff-tree 7da7404fdf1be778534d2d155072114e3f92226a (from 8d287d0f5e18246a3c8fbad6101ac32b4eaf6c32)
Author: Brian <brian at yutani.localnet.net>
Date:   Fri Jan 5 08:40:06 2007 -0700

    Fix glPush/PopClientAttrib() for VBO state (bug 9445).

diff --git a/src/mesa/main/attrib.c b/src/mesa/main/attrib.c
index 9993a00..2b1a35f 100644
--- a/src/mesa/main/attrib.c
+++ b/src/mesa/main/attrib.c
@@ -1,8 +1,8 @@
 /*
  * Mesa 3-D graphics library
- * Version:  6.5.2
+ * Version:  6.5.3
  *
- * Copyright (C) 1999-2006  Brian Paul   All Rights Reserved.
+ * Copyright (C) 1999-2007  Brian Paul   All Rights Reserved.
  *
  * Permission is hereby granted, free of charge, to any person obtaining a
  * copy of this software and associated documentation files (the "Software"),
@@ -1285,6 +1285,12 @@ _mesa_PushClientAttrib(GLbitfield mask)
       attr = MALLOC_STRUCT( gl_array_attrib );
       obj = MALLOC_STRUCT( gl_array_object );
 
+#if FEATURE_ARB_vertex_buffer_object
+      /* increment ref counts since we're copying pointers to these objects */
+      ctx->Array.ArrayBufferObj->RefCount++;
+      ctx->Array.ElementArrayBufferObj->RefCount++;
+#endif
+
       MEMCPY( attr, &ctx->Array, sizeof(struct gl_array_attrib) );
       MEMCPY( obj, ctx->Array.ArrayObj, sizeof(struct gl_array_object) );
 
@@ -1359,6 +1365,13 @@ _mesa_PopClientAttrib(void)
 
 	    _mesa_BindVertexArrayAPPLE( data->ArrayObj->Name );
 	    
+#if FEATURE_ARB_vertex_buffer_object
+            _mesa_BindBufferARB(GL_ARRAY_BUFFER_ARB,
+                                data->ArrayBufferObj->Name);
+            _mesa_BindBufferARB(GL_ELEMENT_ARRAY_BUFFER_ARB,
+                                data->ElementArrayBufferObj->Name);
+#endif
+
 	    MEMCPY( ctx->Array.ArrayObj, data->ArrayObj,
 		    sizeof( struct gl_array_object ) );
 



More information about the mesa-commit mailing list