r300g: skip draw calls with no vertex elements, fixing hardlocks

This commit is contained in:
Marek Olšák 2010-09-03 21:43:36 +02:00
parent d774b0c710
commit d3ca8a4edd

View file

@ -617,6 +617,9 @@ static void r300_draw_vbo(struct pipe_context* pipe,
{
struct r300_context* r300 = r300_context(pipe);
if (!r300->velems->count || !r300->vertex_buffer_count)
return;
if (info->indexed && r300->index_buffer.buffer) {
unsigned offset;