projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2a69903
)
added assertion to be sure we don't exceed bitfield size
author
Brian
<brian.paul@tungstengraphics.com>
Fri, 12 Oct 2007 22:13:15 +0000
(16:13 -0600)
committer
Brian
<brian.paul@tungstengraphics.com>
Fri, 12 Oct 2007 22:13:15 +0000
(16:13 -0600)
src/mesa/state_tracker/st_draw.c
patch
|
blob
|
history
diff --git
a/src/mesa/state_tracker/st_draw.c
b/src/mesa/state_tracker/st_draw.c
index f62f2b3a3a3bb2bae8a859cbb6cb542c3ee69174..cc204640eb15d789dbba3ed28947059fb5c9c8b4 100644
(file)
--- 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 */