gallium: fix bad logic in bind_pstip_fragment_shader(): use &&, not ||
authorBrian Paul <brian.paul@tungstengraphics.com>
Wed, 23 Apr 2008 01:10:52 +0000 (19:10 -0600)
committerBrian Paul <brian.paul@tungstengraphics.com>
Wed, 23 Apr 2008 01:10:52 +0000 (19:10 -0600)
src/gallium/auxiliary/draw/draw_pipe_pstipple.c

index 61bdd29..aec485a 100644 (file)
@@ -469,7 +469,7 @@ pstip_create_sampler(struct pstip_stage *pstip)
 static boolean
 bind_pstip_fragment_shader(struct pstip_stage *pstip)
 {
-   if (!pstip->fs->pstip_fs || 
+   if (!pstip->fs->pstip_fs &&
        !generate_pstip_fs(pstip))
       return FALSE;