Remove unused texunit parameter to ctx->Driver.GenerateMipmap()
[mesa.git] / src / mesa / main / fbobject.c
index 6cda7de953f02018113315b8fdeb2c0542a56b9b..1b11828966096c9678617cba82e9481e996e09f3 100644 (file)
@@ -1547,7 +1547,7 @@ _mesa_GenerateMipmapEXT(GLenum target)
 
    /* XXX this might not handle cube maps correctly */
    _mesa_lock_texture(ctx, texObj);
-   ctx->Driver.GenerateMipmap(ctx, target, texUnit, texObj);
+   ctx->Driver.GenerateMipmap(ctx, target, texObj);
    _mesa_unlock_texture(ctx, texObj);
 
    if (ctx->Driver.UnmapTexture)