diff options
author | Zack Rusin <[email protected]> | 2008-04-22 18:30:31 -0400 |
---|---|---|
committer | Zack Rusin <[email protected]> | 2008-04-22 18:32:36 -0400 |
commit | d8f2e400cfe6e32e82d1656d3483905343124b97 (patch) | |
tree | 69c5010668d580da5c6fa30b4e62a8d98167f813 | |
parent | f088b53769aacbee20135d912c33d688b6002011 (diff) |
Fix a crash. Rasterizer can be null
-rw-r--r-- | src/gallium/auxiliary/draw/draw_context.c | 5 |
1 files changed, 3 insertions, 2 deletions
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); } |