diff options
author | José Fonseca <[email protected]> | 2011-02-03 15:01:09 +0000 |
---|---|---|
committer | José Fonseca <[email protected]> | 2011-02-03 15:15:23 +0000 |
commit | 9d4488e4a8bba2bce89d2c348ddc57ced2c6f6cd (patch) | |
tree | ff461267ab735e8ae45e328ba24a746ecebc41c0 /src | |
parent | 63c0a504a02baf95d34f06d7d9e9ae3fb8e952d4 (diff) |
svga: Add an assert to catch reentrancy.
Diffstat (limited to 'src')
-rw-r--r-- | src/gallium/drivers/svga/svga_swtnl_backend.c | 1 |
1 files changed, 1 insertions, 0 deletions
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); |