clover: Fix up NULL constant pointer arguments.

Tested-by: Tom Stellard <thomas.stellard@amd.com>
This commit is contained in:
Francisco Jerez 2014-02-16 19:35:11 +01:00
parent c97763ca2d
commit 198cd136b9

View file

@ -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