mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-04 22:49:13 +02:00
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.
This commit is contained in:
parent
2164cf7730
commit
87f602dd82
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue