gallium: fix compiler warning
authorKeith Whitwell <keith@tungstengraphics.com>
Mon, 10 Mar 2008 19:41:51 +0000 (19:41 +0000)
committerKeith Whitwell <keith@tungstengraphics.com>
Mon, 10 Mar 2008 23:31:50 +0000 (23:31 +0000)
src/gallium/auxiliary/draw/draw_pstipple.c

index 894b136f2c33b0b0f490d102ca2ecb53526d31de..b3e52dc1c7979151161594fca163c581c6ab1ede 100644 (file)
@@ -482,11 +482,10 @@ static void
 pstip_first_tri(struct draw_stage *stage, struct prim_header *header)
 {
    struct pstip_stage *pstip = pstip_stage(stage);
-   struct draw_context *draw = stage->draw;
    struct pipe_context *pipe = pstip->pipe;
    uint num = MAX2(pstip->num_textures, pstip->num_samplers);
 
-   assert(draw->rasterizer->poly_stipple_enable);
+   assert(stage->draw->rasterizer->poly_stipple_enable);
 
    /*
     * Bind our fragprog, sampler and texture