mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 07:28:11 +02:00
added null pointer check in tnl_copy_to_current()
This commit is contained in:
parent
b1d53d909d
commit
5ac9e660a6
1 changed files with 1 additions and 1 deletions
|
|
@ -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]);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue