radeon: make generate_mipmap static
authorDave Airlie <airlied@redhat.com>
Wed, 4 Feb 2009 03:41:05 +0000 (13:41 +1000)
committerDave Airlie <airlied@redhat.com>
Wed, 4 Feb 2009 03:41:05 +0000 (13:41 +1000)
src/mesa/drivers/dri/radeon/common_misc.c

index c87c6f1..f2b1213 100644 (file)
@@ -1510,8 +1510,8 @@ GLuint radeon_face_for_target(GLenum target)
  * This relies on internal details of _mesa_generate_mipmap, in particular
  * the fact that the memory for recreated texture images is always freed.
  */
-void radeon_generate_mipmap(GLcontext *ctx, GLenum target,
-                           struct gl_texture_object *texObj)
+static void radeon_generate_mipmap(GLcontext *ctx, GLenum target,
+                                  struct gl_texture_object *texObj)
 {
        radeonTexObj* t = radeon_tex_obj(texObj);
        GLuint nr_faces = (t->base.Target == GL_TEXTURE_CUBE_MAP) ? 6 : 1;