summaryrefslogtreecommitdiff
path: root/src/mesa/drivers/dri/i965
diff options
context:
space:
mode:
authorKeith Whitwell <keith@tungstengraphics.com>2006-11-20 11:45:34 +0000
committerKeith Whitwell <keith@tungstengraphics.com>2006-11-20 11:45:34 +0000
commit87f602dd820b8cca5293bd30ba356123ab0f9e36 (patch)
tree6a099d3e5eb71e4a23f22af16924a4bca140f1c8 /src/mesa/drivers/dri/i965
parent2164cf77306856f7d20965354b4eeff3736ddf64 (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. Reported by Haihao Xiang.
Diffstat (limited to 'src/mesa/drivers/dri/i965')
-rw-r--r--src/mesa/drivers/dri/i965/brw_save_api.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_save_api.c b/src/mesa/drivers/dri/i965/brw_save_api.c
index b2f255d095..c541fbe0f4 100644
--- a/src/mesa/drivers/dri/i965/brw_save_api.c
+++ b/src/mesa/drivers/dri/i965/brw_save_api.c
@@ -529,7 +529,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 != BRW_ATTRIB_POS && save->currentsz[attr][0] == 0) {
assert(oldsz == 0);
save->dangling_attr_ref = GL_TRUE;
}