mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-03-04 19:00:31 +01:00
more simplification, clean-up in draw_set_vertex_info()
This commit is contained in:
parent
9f0b5bba70
commit
2112191d45
1 changed files with 0 additions and 8 deletions
|
|
@ -98,18 +98,10 @@ draw_set_vertex_info( struct draw_context *draw,
|
|||
const struct vertex_info *info)
|
||||
{
|
||||
assert(info->interp_mode[0] == INTERP_LINEAR); /* should be vert pos */
|
||||
|
||||
assert(info->num_attribs <= PIPE_MAX_SHADER_OUTPUTS);
|
||||
|
||||
/* Note that draw-module vertices will consist of the attributes passed
|
||||
* to this function, plus a header/prefix containing the vertex header
|
||||
* flags and GLfloat[4] clip pos.
|
||||
*/
|
||||
|
||||
memcpy(&draw->vertex_info, info, sizeof(*info));
|
||||
|
||||
draw_compute_vertex_size(&draw->vertex_info);
|
||||
|
||||
/* Need to know vertex size (in words) for vertex copying elsewhere.
|
||||
* Four words per attribute, plus vertex header (uint) and clip
|
||||
* position (float[4]).
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue