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 61bdd29aa097bdf6c4aec6c22df924773cf6b611..aec485a6e72cbb70ba417db15d5131c547effc62 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;