summaryrefslogtreecommitdiffstats
path: root/src/mesa/state_tracker/st_draw.c
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2008-07-07 10:12:55 -0600
committerBrian Paul <[email protected]>2008-07-07 10:12:55 -0600
commit1828b6d0315be805ec1eea1594fae5b28cfb4ca8 (patch)
treecd4e37afac58b29866a03ada349dc4c1d0da46f6 /src/mesa/state_tracker/st_draw.c
parentb7dfabcaab020e89644f47ec243b231c21fece63 (diff)
gallium: move assertion (though not really significant)
Diffstat (limited to 'src/mesa/state_tracker/st_draw.c')
-rw-r--r--src/mesa/state_tracker/st_draw.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mesa/state_tracker/st_draw.c b/src/mesa/state_tracker/st_draw.c
index 32913879298..a57d7b6a7aa 100644
--- a/src/mesa/state_tracker/st_draw.c
+++ b/src/mesa/state_tracker/st_draw.c
@@ -302,7 +302,6 @@ st_draw_vbo(GLcontext *ctx,
pipe_reference_buffer(pipe, &vbuffer[attr].buffer, stobj->buffer);
vbuffer[attr].buffer_offset = (unsigned) arrays[mesaAttr]->Ptr;
velements[attr].src_offset = 0;
- assert(velements[attr].src_offset <= 2048); /* 11-bit field */
}
else {
/* attribute data is in user-space memory, not a VBO */
@@ -323,6 +322,8 @@ st_draw_vbo(GLcontext *ctx,
velements[attr].src_offset = 0;
}
+ assert(velements[attr].src_offset <= 2048); /* 11-bit field */
+
/* common-case setup */
vbuffer[attr].pitch = arrays[mesaAttr]->StrideB; /* in bytes */
vbuffer[attr].max_index = max_index;