mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-04-16 19:20:45 +02:00
r300g: skip draw calls with no vertex elements, fixing hardlocks
This commit is contained in:
parent
d774b0c710
commit
d3ca8a4edd
1 changed files with 3 additions and 0 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue