swrast: use _mesa_ffs() instead of ffs()
authorBrian Paul <brianp@vmware.com>
Tue, 25 Oct 2011 17:25:55 +0000 (11:25 -0600)
committerBrian Paul <brianp@vmware.com>
Tue, 25 Oct 2011 17:26:26 +0000 (11:26 -0600)
Fixes MSVC build.

src/mesa/swrast/s_texture.c

index 80c3070..fb1edb3 100644 (file)
@@ -279,7 +279,7 @@ _swrast_map_textures(struct gl_context *ctx)
 
    /* loop over enabled texture units */
    while (enabledUnits) {
-      GLuint unit = ffs(enabledUnits) - 1;
+      GLuint unit = _mesa_ffs(enabledUnits) - 1;
       struct gl_texture_object *texObj = ctx->Texture.Unit[unit]._Current;
       
       _swrast_map_texture(ctx, texObj);
@@ -299,7 +299,7 @@ _swrast_unmap_textures(struct gl_context *ctx)
 
    /* loop over enabled texture units */
    while (enabledUnits) {
-      GLuint unit = ffs(enabledUnits) - 1;
+      GLuint unit = _mesa_ffs(enabledUnits) - 1;
       struct gl_texture_object *texObj = ctx->Texture.Unit[unit]._Current;
       
       _swrast_unmap_texture(ctx, texObj);