summaryrefslogtreecommitdiffstats
path: root/src/gallium
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2011-09-22 10:29:58 -0600
committerBrian Paul <[email protected]>2011-09-23 07:58:44 -0600
commitddfdea88d86bc9016dd51730b855ff6a9a53a4f3 (patch)
tree0265cb23d5a799ffd221d0ede7328390f242b4c5 /src/gallium
parent1a662e7c18cab98f1b122f6766faf338725de673 (diff)
draw/llvm: add additional null pointer checkin draw_pt_fetch_pipeline_or_emit_llvm()
Diffstat (limited to 'src/gallium')
-rw-r--r--src/gallium/auxiliary/draw/draw_pt_fetch_shade_pipeline_llvm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/auxiliary/draw/draw_pt_fetch_shade_pipeline_llvm.c b/src/gallium/auxiliary/draw/draw_pt_fetch_shade_pipeline_llvm.c
index ac839682331..2a3fb89884c 100644
--- a/src/gallium/auxiliary/draw/draw_pt_fetch_shade_pipeline_llvm.c
+++ b/src/gallium/auxiliary/draw/draw_pt_fetch_shade_pipeline_llvm.c
@@ -430,7 +430,7 @@ draw_pt_fetch_pipeline_or_emit_llvm(struct draw_context *draw)
{
struct llvm_middle_end *fpme = 0;
- if (!draw->llvm->gallivm->engine)
+ if (!draw->llvm || !draw->llvm->gallivm->engine)
return NULL;
fpme = CALLOC_STRUCT( llvm_middle_end );