mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 13:38:06 +02:00
fix broken _mesa_copy_context() for GL_LIGHTING_BIT
This commit is contained in:
parent
ee2339f673
commit
2aabdc743f
1 changed files with 2 additions and 2 deletions
|
|
@ -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++) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue