summaryrefslogtreecommitdiff
path: root/src/gallium/auxiliary/draw/draw_pipe_pstipple.c
diff options
context:
space:
mode:
authorBrian Paul <brianp@vmware.com>2011-11-03 16:55:18 -0600
committerBrian Paul <brianp@vmware.com>2011-11-03 16:56:11 -0600
commite814d577253d3b618cc40e36f9d50b42fe61d6ed (patch)
tree99a371b3c62a0756cf2f9a0871e70922e8861c6f /src/gallium/auxiliary/draw/draw_pipe_pstipple.c
parentac0ec07e6c8bad958f583aae192fe5a80a63da7b (diff)
draw: assert that we have non-null fragment shader
Instead of just segfaulting. Recently ran into this.
Diffstat (limited to 'src/gallium/auxiliary/draw/draw_pipe_pstipple.c')
-rw-r--r--src/gallium/auxiliary/draw/draw_pipe_pstipple.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/draw/draw_pipe_pstipple.c b/src/gallium/auxiliary/draw/draw_pipe_pstipple.c
index fe3627be867..0401a45507b 100644
--- a/src/gallium/auxiliary/draw/draw_pipe_pstipple.c
+++ b/src/gallium/auxiliary/draw/draw_pipe_pstipple.c
@@ -361,6 +361,8 @@ generate_pstip_fs(struct pstip_stage *pstip)
tgsi_dump(pstip_fs.tokens, 0);
#endif
+ assert(pstip->fs);
+
pstip->fs->sampler_unit = transform.freeSampler;
assert(pstip->fs->sampler_unit < PIPE_MAX_SAMPLERS);