From ddfdea88d86bc9016dd51730b855ff6a9a53a4f3 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Thu, 22 Sep 2011 10:29:58 -0600 Subject: [PATCH] draw/llvm: add additional null pointer checkin draw_pt_fetch_pipeline_or_emit_llvm() --- src/gallium/auxiliary/draw/draw_pt_fetch_shade_pipeline_llvm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ); -- 2.30.2