diff options
Diffstat (limited to 'src/mesa/swrast/s_texture.c')
-rw-r--r-- | src/mesa/swrast/s_texture.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/mesa/swrast/s_texture.c b/src/mesa/swrast/s_texture.c index a735e69c2ee..9ccd0e34702 100644 --- a/src/mesa/swrast/s_texture.c +++ b/src/mesa/swrast/s_texture.c @@ -362,11 +362,10 @@ _swrast_map_textures(struct gl_context *ctx) int unit; for (unit = 0; unit <= ctx->Texture._MaxEnabledTexImageUnit; unit++) { - if (ctx->Texture.Unit[unit]._ReallyEnabled) { - struct gl_texture_object *texObj = ctx->Texture.Unit[unit]._Current; + struct gl_texture_object *texObj = ctx->Texture.Unit[unit]._Current; + if (texObj) _swrast_map_texture(ctx, texObj); - } } } @@ -379,10 +378,9 @@ _swrast_unmap_textures(struct gl_context *ctx) { int unit; for (unit = 0; unit <= ctx->Texture._MaxEnabledTexImageUnit; unit++) { - if (ctx->Texture.Unit[unit]._ReallyEnabled) { - struct gl_texture_object *texObj = ctx->Texture.Unit[unit]._Current; + struct gl_texture_object *texObj = ctx->Texture.Unit[unit]._Current; + if (texObj) _swrast_unmap_texture(ctx, texObj); - } } } |