From: Zack Rusin Date: Tue, 22 Apr 2008 22:30:31 +0000 (-0400) Subject: Fix a crash. Rasterizer can be null X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d8f2e400cfe6e32e82d1656d3483905343124b97;p=mesa.git Fix a crash. Rasterizer can be null --- diff --git a/src/gallium/auxiliary/draw/draw_context.c b/src/gallium/auxiliary/draw/draw_context.c index b916b278772..db92a53ed28 100644 --- a/src/gallium/auxiliary/draw/draw_context.c +++ b/src/gallium/auxiliary/draw/draw_context.c @@ -122,8 +122,9 @@ void draw_set_rasterizer_state( struct draw_context *draw, draw_do_flush( draw, DRAW_FLUSH_STATE_CHANGE ); draw->rasterizer = raster; - draw->bypass_clipping = (draw->rasterizer->bypass_clipping || - draw->driver.bypass_clipping); + draw->bypass_clipping = + ((draw->rasterizer && draw->rasterizer->bypass_clipping) || + draw->driver.bypass_clipping); }