diff options
-rw-r--r-- | src/gallium/drivers/svga/svga_state_tss.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/svga/svga_state_tss.c b/src/gallium/drivers/svga/svga_state_tss.c index 63f3c8c8583..d598d23c4ea 100644 --- a/src/gallium/drivers/svga/svga_state_tss.c +++ b/src/gallium/drivers/svga/svga_state_tss.c @@ -256,7 +256,7 @@ svga_reemit_tss_bindings(struct svga_context *svga) } /* Polygon stipple */ - if (svga->curr.rast->templ.poly_stipple_enable) { + if (svga->curr.rast && svga->curr.rast->templ.poly_stipple_enable) { const unsigned unit = svga->state.hw_draw.fs->pstipple_sampler_unit; struct svga_hw_view_state *view = &svga->state.hw_draw.views[unit]; |