OSDN Git Service

gallivm: fix crash in lp_sampler_static_state()
authorBrian Paul <brianp@vmware.com>
Fri, 10 Aug 2012 15:23:36 +0000 (09:23 -0600)
committerBrian Paul <brianp@vmware.com>
Fri, 10 Aug 2012 15:45:25 +0000 (09:45 -0600)
commitf7af4beae5e25c060d4f2c53d55b0e87ee9bdaeb
treec4477c14b0ab24b555bdeab68be15cd31f48c3b3
parent9b04abe36812a34ba447e5b1f8d8e44a10510820
gallivm: fix crash in lp_sampler_static_state()

Fixes WebGL conformance/uniforms/uniform-default-values.html crash.

We need to check for the null view pointer before accessing view->texture.

Fixes http://bugs.freedesktop.org/show_bug.cgi?id=53317

Note: This is a candidate for the 8.0 branch.

Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
src/gallium/auxiliary/gallivm/lp_bld_sample.c