mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-02-14 13:20:28 +01:00
Upload of interleaved arrays currently assumes that position is the
first element in the interleaved group. Add a test to catch cases where this isn't true and use per-array uploads instead. Fixes compiz glitches on x64.
This commit is contained in:
parent
fd6341e574
commit
a2c50b0f4a
1 changed files with 1 additions and 0 deletions
|
|
@ -435,6 +435,7 @@ GLboolean brw_upload_vertices( struct brw_context *brw,
|
|||
ptr = input->glarray->Ptr;
|
||||
}
|
||||
else if (interleave != input->glarray->StrideB ||
|
||||
(const char *)input->glarray->Ptr - (const char *)ptr < 0 ||
|
||||
(const char *)input->glarray->Ptr - (const char *)ptr > interleave) {
|
||||
interleave = 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue