gallium: move assertion (though not really significant)
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user