diff options
author | Brian Paul <brian.paul@tungstengraphics.com> | 2006-02-24 18:19:11 +0000 |
---|---|---|
committer | Brian Paul <brian.paul@tungstengraphics.com> | 2006-02-24 18:19:11 +0000 |
commit | 2aabdc743fd1822477a0d7440b8908c61963f719 (patch) | |
tree | 49f4d3567ec612108222d3c0ae5acb46adc0785f /src/mesa/main | |
parent | ee2339f67364f0dde4bb4f198c767585dd45a634 (diff) | |
download | external_mesa3d-2aabdc743fd1822477a0d7440b8908c61963f719.zip external_mesa3d-2aabdc743fd1822477a0d7440b8908c61963f719.tar.gz external_mesa3d-2aabdc743fd1822477a0d7440b8908c61963f719.tar.bz2 |
fix broken _mesa_copy_context() for GL_LIGHTING_BIT
Diffstat (limited to 'src/mesa/main')
-rw-r--r-- | src/mesa/main/context.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/main/context.c b/src/mesa/main/context.c index 8d42c21..2ce0608 100644 --- a/src/mesa/main/context.c +++ b/src/mesa/main/context.c @@ -8,7 +8,7 @@ * Mesa 3-D graphics library * Version: 6.5 * - * Copyright (C) 1999-2005 Brian Paul All Rights Reserved. + * Copyright (C) 1999-2006 Brian Paul All Rights Reserved. * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), @@ -1422,7 +1422,7 @@ _mesa_copy_context( const GLcontext *src, GLcontext *dst, GLuint mask ) if (mask & GL_LIGHTING_BIT) { GLuint i; /* begin with memcpy */ - MEMCPY( &dst->Light, &src->Light, sizeof(struct gl_light) ); + dst->Light = src->Light; /* fixup linked lists to prevent pointer insanity */ make_empty_list( &(dst->Light.EnabledList) ); for (i = 0; i < MAX_LIGHTS; i++) { |