From: José Fonseca Date: Thu, 3 Feb 2011 15:01:09 +0000 (+0000) Subject: svga: Add an assert to catch reentrancy. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=9d4488e4a8bba2bce89d2c348ddc57ced2c6f6cd;p=mesa.git svga: Add an assert to catch reentrancy. --- diff --git a/src/gallium/drivers/svga/svga_swtnl_backend.c b/src/gallium/drivers/svga/svga_swtnl_backend.c index d5db6bf641a..087f2d08540 100644 --- a/src/gallium/drivers/svga/svga_swtnl_backend.c +++ b/src/gallium/drivers/svga/svga_swtnl_backend.c @@ -90,6 +90,7 @@ svga_vbuf_render_allocate_vertices( struct vbuf_render *render, svga_render->vbuf_size); if(!svga_render->vbuf) { svga_context_flush(svga, NULL); + assert(!svga_render->vbuf); svga_render->vbuf = pipe_buffer_create(screen, PIPE_BIND_VERTEX_BUFFER, svga_render->vbuf_size);