OSDN Git Service

mesa: remove unused _mesa_copy_materials.
authorMathias Fröhlich <Mathias.Froehlich@web.de>
Mon, 26 Dec 2011 20:45:56 +0000 (21:45 +0100)
committerMathias Fröhlich <Mathias.Froehlich@web.de>
Mon, 26 Dec 2011 20:46:56 +0000 (21:46 +0100)
Signed-off-by: Mathias Froehlich <Mathias.Froehlich@web.de>
src/mesa/main/light.c
src/mesa/main/light.h

index 60daa89..bf4bee3 100644 (file)
@@ -624,22 +624,6 @@ _mesa_material_bitmask( struct gl_context *ctx, GLenum face, GLenum pname,
 
 
 
-/* Perform a straight copy between materials.
- */
-void
-_mesa_copy_materials( struct gl_material *dst,
-                      const struct gl_material *src,
-                      GLuint bitmask )
-{
-   int i;
-
-   for (i = 0 ; i < MAT_ATTRIB_MAX ; i++) 
-      if (bitmask & (1<<i))
-        COPY_4FV( dst->Attrib[i], src->Attrib[i] );
-}
-
-
-
 /* Update derived values following a change in ctx->Light.Material
  */
 void
index f42fbe6..9b66c7e 100644 (file)
@@ -123,10 +123,6 @@ extern void _mesa_update_tnl_spaces( struct gl_context *ctx, GLuint new_state );
 extern void _mesa_update_material( struct gl_context *ctx,
                                    GLuint bitmask );
 
-extern void _mesa_copy_materials( struct gl_material *dst,
-                                 const struct gl_material *src,
-                                 GLuint bitmask );
-
 extern void _mesa_update_color_material( struct gl_context *ctx,
                                          const GLfloat rgba[4] );