mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 00:00:11 +01:00
added null VB->AttribPtr[i] check
This commit is contained in:
parent
bc3f87683a
commit
8e4ed6323d
1 changed files with 1 additions and 1 deletions
|
|
@ -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++) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue