diff options
Diffstat (limited to 'src/gallium')
-rw-r--r-- | src/gallium/state_trackers/clover/core/kernel.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
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 |