mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-26 03:30:22 +01:00
In bind_inputs() set VB->EdgeFlag to NULL if it's not needed.
Otherwise, the clip/interp code was finding VB->EdgeFlag to be non-null and reading/writing it when the memory may have been freed earlier in free_space(). This fixes several VTK segfaults/failures reported by Brad King @ Kitware.
This commit is contained in:
parent
9cbcf7c696
commit
d2d86a3f0b
1 changed files with 4 additions and 1 deletions
|
|
@ -251,7 +251,10 @@ static void bind_inputs( GLcontext *ctx,
|
|||
VB->AttribPtr[_TNL_ATTRIB_EDGEFLAG],
|
||||
VB->Count );
|
||||
}
|
||||
|
||||
else {
|
||||
/* the data previously pointed to by EdgeFlag may have been freed */
|
||||
VB->EdgeFlag = NULL;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue