diff options
author | Brian <[email protected]> | 2007-08-17 15:38:29 +0100 |
---|---|---|
committer | Brian <[email protected]> | 2007-08-17 15:38:29 +0100 |
commit | 8e4ed6323dff7c021b0f7d7711a89379e26ddb25 (patch) | |
tree | 7d15c648b5aaba9a91c8ef8e3c98d6c9227cd2a4 /src/mesa | |
parent | bc3f87683a25803fde6e69eddccc7e0a1c59df17 (diff) |
added null VB->AttribPtr[i] check
Diffstat (limited to 'src/mesa')
-rw-r--r-- | src/mesa/tnl/t_vp_build.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/tnl/t_vp_build.c b/src/mesa/tnl/t_vp_build.c index ee1a2498b32..eb5e176895e 100644 --- a/src/mesa/tnl/t_vp_build.c +++ b/src/mesa/tnl/t_vp_build.c @@ -146,7 +146,7 @@ static struct state_key *make_state_key( GLcontext *ctx ) } for (i = _TNL_FIRST_MAT; i <= _TNL_LAST_MAT; i++) - if (VB->AttribPtr[i]->stride) + if (VB->AttribPtr[i] && VB->AttribPtr[i]->stride) key->light_material_mask |= 1<<(i-_TNL_ATTRIB_MAT_FRONT_AMBIENT); for (i = 0; i < MAX_LIGHTS; i++) { |