diff options
author | Keith Whitwell <[email protected]> | 2008-05-29 12:38:49 +0100 |
---|---|---|
committer | Keith Whitwell <[email protected]> | 2008-05-29 12:38:49 +0100 |
commit | bb2e13b9e82b68ec3b9fc56a4c35e7ead8fd138f (patch) | |
tree | 65f387b426dcd113f602d9a51ef6fc8d1652200f /src/mesa/state_tracker | |
parent | 82605d7bcd533d7c96cc619c45970efd7229dc3b (diff) |
draw: make sure constant buffer data is aligned before passing to aos.c
Diffstat (limited to 'src/mesa/state_tracker')
-rw-r--r-- | src/mesa/state_tracker/st_draw.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/mesa/state_tracker/st_draw.c b/src/mesa/state_tracker/st_draw.c index 551860452ae..5300848ef6a 100644 --- a/src/mesa/state_tracker/st_draw.c +++ b/src/mesa/state_tracker/st_draw.c @@ -596,9 +596,10 @@ st_feedback_draw_vbo(GLcontext *ctx, /* map constant buffers */ mapped_constants = pipe_buffer_map(pipe, - st->state.constants[PIPE_SHADER_VERTEX].buffer, - PIPE_BUFFER_USAGE_CPU_READ); - draw_set_mapped_constant_buffer(st->draw, mapped_constants); + st->state.constants[PIPE_SHADER_VERTEX].buffer, + PIPE_BUFFER_USAGE_CPU_READ); + draw_set_mapped_constant_buffer(st->draw, mapped_constants, + st->state.constants[PIPE_SHADER_VERTEX].buffer->size); /* draw here */ |