summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2011-10-25 11:25:55 -0600
committerBrian Paul <[email protected]>2011-10-25 11:26:26 -0600
commite8d0d7893a6e33eb76441fed146deadb39e91ab3 (patch)
tree6a956db9d36a1fb2127e1510ed8b9b857219c6ba
parent765503bb5dc21dd9cacf11039fa1555b887804f2 (diff)
swrast: use _mesa_ffs() instead of ffs()
Fixes MSVC build.
-rw-r--r--src/mesa/swrast/s_texture.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/swrast/s_texture.c b/src/mesa/swrast/s_texture.c
index 80c3070c941..fb1edb318dd 100644
--- a/src/mesa/swrast/s_texture.c
+++ b/src/mesa/swrast/s_texture.c
@@ -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);