summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers
diff options
context:
space:
mode:
Diffstat (limited to 'src/gallium/drivers')
-rw-r--r--src/gallium/drivers/svga/svga_state_sampler.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/svga/svga_state_sampler.c b/src/gallium/drivers/svga/svga_state_sampler.c
index 9bd0d5303bd..11f36e3553b 100644
--- a/src/gallium/drivers/svga/svga_state_sampler.c
+++ b/src/gallium/drivers/svga/svga_state_sampler.c
@@ -399,7 +399,7 @@ update_samplers(struct svga_context *svga, unsigned dirty )
* for this texture unit, don't enable shadow compare in
* the texture sampler state.
*/
- if (fs->fs_shadow_compare_units & (1 << i)) {
+ if (fs && (fs->fs_shadow_compare_units & (1 << i))) {
fs_shadow = true;
}
}