mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-04 09:48:07 +02:00
added assertion to be sure we don't exceed bitfield size
This commit is contained in:
parent
2a699038dc
commit
47fc06753e
1 changed files with 1 additions and 0 deletions
|
|
@ -160,6 +160,7 @@ st_draw_vbo(GLcontext *ctx,
|
|||
winsys->buffer_reference(winsys, &vbuffer[attr].buffer, stobj->buffer);
|
||||
vbuffer[attr].buffer_offset = (unsigned) arrays[0]->Ptr;/* in bytes */
|
||||
velement.src_offset = arrays[mesaAttr]->Ptr - arrays[0]->Ptr;
|
||||
assert(velement.src_offset <= 2048); /* 11-bit field */
|
||||
}
|
||||
else {
|
||||
/* attribute data is in user-space memory, not a VBO */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue