diff options
author | Michel Dänzer <[email protected]> | 2010-01-04 13:05:43 +0100 |
---|---|---|
committer | Michel Dänzer <[email protected]> | 2010-01-04 13:05:43 +0100 |
commit | acd1451393068762a46a06aee3af9e94bc09e147 (patch) | |
tree | 15a503e0ff2a274258d2151ad2098ead248f69b9 /src | |
parent | c114f000df269787afb449d73cd8aae202be2550 (diff) |
svga: Fix debug build crash when rendering to depth/stencil renderbuffer only.
Diffstat (limited to 'src')
-rw-r--r-- | src/gallium/drivers/svga/svga_draw.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gallium/drivers/svga/svga_draw.c b/src/gallium/drivers/svga/svga_draw.c index 8db40d0fd57..ca73cf9d5a3 100644 --- a/src/gallium/drivers/svga/svga_draw.c +++ b/src/gallium/drivers/svga/svga_draw.c @@ -164,7 +164,8 @@ svga_hwtnl_flush( struct svga_hwtnl *hwtnl ) } SVGA_DBG(DEBUG_DMA, "draw to sid %p, %d prims\n", - svga_surface(svga->curr.framebuffer.cbufs[0])->handle, + svga->curr.framebuffer.cbufs[0] ? + svga_surface(svga->curr.framebuffer.cbufs[0])->handle : NULL, hwtnl->cmd.prim_count); ret = SVGA3D_BeginDrawPrimitives(swc, |