From: Michel Dänzer Date: Mon, 4 Jan 2010 12:05:43 +0000 (+0100) Subject: svga: Fix debug build crash when rendering to depth/stencil renderbuffer only. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=acd1451393068762a46a06aee3af9e94bc09e147;p=mesa.git svga: Fix debug build crash when rendering to depth/stencil renderbuffer only. --- 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,