From 9d4488e4a8bba2bce89d2c348ddc57ced2c6f6cd Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jos=C3=A9=20Fonseca?= Date: Thu, 3 Feb 2011 15:01:09 +0000 Subject: [PATCH] svga: Add an assert to catch reentrancy. --- src/gallium/drivers/svga/svga_swtnl_backend.c | 1 + 1 file changed, 1 insertion(+) 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); -- 2.30.2