From: Francisco Jerez Date: Sun, 16 Feb 2014 18:35:11 +0000 (+0100) Subject: clover: Fix up NULL constant pointer arguments. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=198cd136b94b2ddfb8e2d50e567f3e391eb93915;p=mesa.git clover: Fix up NULL constant pointer arguments. Tested-by: Tom Stellard --- diff --git a/src/gallium/state_trackers/clover/core/kernel.cpp b/src/gallium/state_trackers/clover/core/kernel.cpp index 6d894cd66ec..fa9453b0be3 100644 --- a/src/gallium/state_trackers/clover/core/kernel.cpp +++ b/src/gallium/state_trackers/clover/core/kernel.cpp @@ -411,7 +411,8 @@ kernel::constant_argument::bind(exec_context &ctx, void kernel::constant_argument::unbind(exec_context &ctx) { - buf->resource(*ctx.q).unbind_surface(*ctx.q, st); + if (buf) + buf->resource(*ctx.q).unbind_surface(*ctx.q, st); } void