draw: Fix regression in draw_set_sampler(_views).
authorJosé Fonseca <jfonseca@vmware.com>
Fri, 24 Aug 2012 10:27:22 +0000 (11:27 +0100)
committerJosé Fonseca <jfonseca@vmware.com>
Fri, 24 Aug 2012 10:28:00 +0000 (11:28 +0100)
commit3e3f99277df947a96029580dc4e66ae38a93f004
tree0ab4fc580f7188e7850565902951a7b19dbd1b25
parente84d45fdb73687019a6798cfb37b01291b212f4d
draw: Fix regression in draw_set_sampler(_views).

draw->samplers(_views) now has PIPE_SHADER_TYPES elements, instead of
PIPE_MAX_SAMPLERS as before.

Also, shader_stage must be less than PIPE_SHADER_TYPES to prevent buffer
overflow.

Trivial.
src/gallium/auxiliary/draw/draw_context.c