diff options
Diffstat (limited to 'src/gallium')
-rw-r--r-- | src/gallium/auxiliary/cso_cache/cso_context.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/cso_cache/cso_context.c b/src/gallium/auxiliary/cso_cache/cso_context.c index e3d46f3c8de..2543c5ff61f 100644 --- a/src/gallium/auxiliary/cso_cache/cso_context.c +++ b/src/gallium/auxiliary/cso_cache/cso_context.c @@ -1147,6 +1147,9 @@ void cso_set_vertex_buffers(struct cso_context *ctx, { struct u_vbuf *vbuf = ctx->vbuf; + if (!count) + return; + if (vbuf) { u_vbuf_set_vertex_buffers(vbuf, start_slot, count, buffers); return; |