svga: fix referencing a NULL framebuffer cbuf
authorCharmaine Lee <charmainel@vmware.com>
Fri, 21 Aug 2015 18:41:26 +0000 (11:41 -0700)
committerBrian Paul <brianp@vmware.com>
Wed, 2 Sep 2015 19:22:42 +0000 (13:22 -0600)
commit4a9480b64aed6986095c391ebba6b91212fb9277
treea55d654fd00730a0a36a7640bccf58bea035ff6f
parent5a5e5e39592292a8ffa861e6f9b21934af428b9b
svga: fix referencing a NULL framebuffer cbuf

Check for a valid framebuffer cbuf pointer before accessing its
associated surface.

Fix piglit test fbo-drawbuffers-none.

Reviewed-by: Brian Paul <brianp@vmware.com>
src/gallium/drivers/svga/svga_pipe_sampler.c