draw: fix non-indexed draw calls if there's an index buffer
authorMarek Olšák <maraeo@gmail.com>
Fri, 14 Sep 2012 15:03:25 +0000 (17:03 +0200)
committerMarek Olšák <maraeo@gmail.com>
Sat, 22 Sep 2012 12:20:37 +0000 (14:20 +0200)
commit2988fa940e1d8a4531fddff4d554eec1e6e04474
treeefe44e1a37ff1b691c95208a617679502a15a68c
parentbbb2ebe2fc073793c5129b164b61fe1b36dfc4b1
draw: fix non-indexed draw calls if there's an index buffer

pipe_draw_info::indexed determines if it should be indexed and not
the presence of an index buffer.

This fixes crashes in r300g.

NOTE: This is a candidate for the stable branches.

Tested-by: Michel Dänzer <michel.daenzer@amd.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
src/gallium/auxiliary/draw/draw_context.c
src/gallium/auxiliary/draw/draw_private.h
src/gallium/auxiliary/draw/draw_pt.c