aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary/draw/draw_private.h
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2012-09-14 17:03:25 +0200
committerMarek Olšák <[email protected]>2012-09-22 14:20:37 +0200
commit2988fa940e1d8a4531fddff4d554eec1e6e04474 (patch)
treeefe44e1a37ff1b691c95208a617679502a15a68c /src/gallium/auxiliary/draw/draw_private.h
parentbbb2ebe2fc073793c5129b164b61fe1b36dfc4b1 (diff)
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 <[email protected]> Reviewed-by: Brian Paul <[email protected]>
Diffstat (limited to 'src/gallium/auxiliary/draw/draw_private.h')
-rw-r--r--src/gallium/auxiliary/draw/draw_private.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/draw/draw_private.h b/src/gallium/auxiliary/draw/draw_private.h
index c2af0f36bca..5c497c64718 100644
--- a/src/gallium/auxiliary/draw/draw_private.h
+++ b/src/gallium/auxiliary/draw/draw_private.h
@@ -174,6 +174,7 @@ struct draw_context
/** vertex element/index buffer (ex: glDrawElements) */
const void *elts;
/** bytes per index (0, 1, 2 or 4) */
+ unsigned eltSizeIB;
unsigned eltSize;
int eltBias;
unsigned min_index;