r300g: skip draw calls with no vertex elements, fixing hardlocks
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user