diff options
author | Brian Paul <brian.paul@tungstengraphics.com> | 2003-06-11 18:48:54 +0000 |
---|---|---|
committer | Brian Paul <brian.paul@tungstengraphics.com> | 2003-06-11 18:48:54 +0000 |
commit | 5ac9e660a65f4ab06120abbc20598a93a87ded49 (patch) | |
tree | db444aea9b5f7e5278bfea85ef926fcb473adf57 /src/mesa | |
parent | b1d53d909d1077f312d8f1750e025c7986a4cb2f (diff) | |
download | external_mesa3d-5ac9e660a65f4ab06120abbc20598a93a87ded49.zip external_mesa3d-5ac9e660a65f4ab06120abbc20598a93a87ded49.tar.gz external_mesa3d-5ac9e660a65f4ab06120abbc20598a93a87ded49.tar.bz2 |
added null pointer check in tnl_copy_to_current()
Diffstat (limited to 'src/mesa')
-rw-r--r-- | src/mesa/tnl/t_imm_exec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/tnl/t_imm_exec.c b/src/mesa/tnl/t_imm_exec.c index da44ca1..0fec5d4 100644 --- a/src/mesa/tnl/t_imm_exec.c +++ b/src/mesa/tnl/t_imm_exec.c @@ -135,7 +135,7 @@ void _tnl_copy_to_current( GLcontext *ctx, struct immediate *IM, _tnl_print_vert_flags("copy to current", flag); for (attr = 1; attr < VERT_ATTRIB_MAX; attr++) { - if (flag & (1 << attr)) { + if ((flag & (1 << attr)) && IM->Attrib[attr]) { COPY_4FV(ctx->Current.Attrib[attr], IM->Attrib[attr][count]); } } |