diff options
author | Brian <[email protected]> | 2007-10-12 16:13:15 -0600 |
---|---|---|
committer | Brian <[email protected]> | 2007-10-12 16:13:15 -0600 |
commit | 47fc06753ec4319a3ac6470060a4582975daceda (patch) | |
tree | 18ccb58c80ee6248aed8eb4ed5fb9fd8455a5b77 /src/mesa | |
parent | 2a699038dc2412311f89f9fd843522e784ad8fa3 (diff) |
added assertion to be sure we don't exceed bitfield size
Diffstat (limited to 'src/mesa')
-rw-r--r-- | src/mesa/state_tracker/st_draw.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mesa/state_tracker/st_draw.c b/src/mesa/state_tracker/st_draw.c index f62f2b3a3a3..cc204640eb1 100644 --- a/src/mesa/state_tracker/st_draw.c +++ b/src/mesa/state_tracker/st_draw.c @@ -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 */ |