gallium/draw: add additional DRAW_LLVM check
authorBrian Paul <brianp@vmware.com>
Wed, 7 Apr 2010 02:20:13 +0000 (20:20 -0600)
committerBrian Paul <brianp@vmware.com>
Wed, 7 Apr 2010 02:20:17 +0000 (20:20 -0600)
Fixes build breakage.

src/gallium/auxiliary/draw/draw_pt.c

index 43126c6c8812661ad994a6f51e85a6931368a451..b7a998248dc3d7bae6b3859018964da512323a45 100644 (file)
@@ -140,7 +140,10 @@ boolean draw_pt_init( struct draw_context *draw )
    if (!draw->pt.middle.fetch_shade_emit)
       return FALSE;
 
+#if DRAW_LLVM
    draw->pt.middle.general = draw_pt_fetch_pipeline_or_emit_llvm( draw );
+#endif
+
    if (!draw->pt.middle.general)
       draw->pt.middle.general = draw_pt_fetch_pipeline_or_emit( draw );
    if (!draw->pt.middle.general)