gallium: fix invalid call to draw_set_mapped_constant_buffer()
authorBrian Paul <brian.paul@tungstengraphics.com>
Fri, 20 Jun 2008 23:28:42 +0000 (17:28 -0600)
committerBrian Paul <brian.paul@tungstengraphics.com>
Fri, 20 Jun 2008 23:28:42 +0000 (17:28 -0600)
commitbe4259b06cbb2b4c1d8a2dacc19313a30fa909d8
tree904837ad8814bc29c183656fadf6e76c71e622bf
parentf38bb109694f2879036c54c97c1c69ea2fecd6c8
gallium: fix invalid call to draw_set_mapped_constant_buffer()

We were indexing sp_constants[i] outside the loop so i was 2.
Replace i with PIPE_SHADER_VERTEX.
Also, replace magic '2' with PIPE_SHADER_TYPES in a few places.
src/gallium/drivers/softpipe/sp_context.h
src/gallium/drivers/softpipe/sp_draw_arrays.c