aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKeith Whitwell <[email protected]>2006-11-20 11:49:58 +0000
committerKeith Whitwell <[email protected]>2006-11-20 11:49:58 +0000
commitdd60eaa6d9f61735141976db0e83d25176ac73c7 (patch)
treec144ace5ecf25668280eb9b2d98512b4d11e9873 /src
parent188a4db49c4c22429bfa7ae87d4b1a0c35bf0285 (diff)
Don't perform dangling attribute check on POS attribute. It can't by
definition dangle (every vertex has a position). However save->currentsz isn't properly maintained for this attribute, as there is no current position value to track. Based on patch from Haihao Xiang.
Diffstat (limited to 'src')
-rw-r--r--src/mesa/vbo/vbo_save_api.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/vbo/vbo_save_api.c b/src/mesa/vbo/vbo_save_api.c
index 8ceba2b832b..efe018b09e2 100644
--- a/src/mesa/vbo/vbo_save_api.c
+++ b/src/mesa/vbo/vbo_save_api.c
@@ -527,7 +527,7 @@ static void _save_upgrade_vertex( GLcontext *ctx,
/* Need to note this and fix up at runtime (or loopback):
*/
- if (save->currentsz[attr][0] == 0) {
+ if (attr != VBO_ATTRIB_POS && save->currentsz[attr][0] == 0) {
assert(oldsz == 0);
save->dangling_attr_ref = GL_TRUE;
}