--- src/mesa/drivers/dri/i965/brw_save_api.c 2006-11-20 11:29:58.000000000 +0800 +++ src/mesa/drivers/dri/i965/brw_save_api.c.new 2006-11-20 11:29:31.000000000 +0800 @@ -530,7 +530,7 @@ /* Need to note this and fix up at runtime (or loopback): */ if (save->currentsz[attr][0] == 0) { - assert(oldsz == 0); + if (attr) assert(oldsz == 0); save->dangling_attr_ref = GL_TRUE; }