diff options
author | Brian Paul <[email protected]> | 2009-09-28 09:22:33 -0600 |
---|---|---|
committer | Brian Paul <[email protected]> | 2009-09-28 09:22:33 -0600 |
commit | eb82373abb08171d7fcb15b5f4f229fc9ca9aa91 (patch) | |
tree | 0da701588ac9984498c6f39b0079a6af639ec5fa /src/mesa/main/enable.c | |
parent | 6920a355c1fafb243efc8693d845cd8b524b6b0a (diff) |
mesa: use _mesa_get_current_tex_unit() helper
Diffstat (limited to 'src/mesa/main/enable.c')
-rw-r--r-- | src/mesa/main/enable.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/main/enable.c b/src/mesa/main/enable.c index 8e6b01f73b9..4383aed6692 100644 --- a/src/mesa/main/enable.c +++ b/src/mesa/main/enable.c @@ -37,6 +37,7 @@ #include "mtypes.h" #include "enums.h" #include "api_arrayelt.h" +#include "texstate.h" @@ -228,8 +229,7 @@ get_texcoord_unit(GLcontext *ctx) static GLboolean enable_texture(GLcontext *ctx, GLboolean state, GLbitfield texBit) { - const GLuint curr = ctx->Texture.CurrentUnit; - struct gl_texture_unit *texUnit = &ctx->Texture.Unit[curr]; + struct gl_texture_unit *texUnit = _mesa_get_current_tex_unit(ctx); const GLbitfield newenabled = state ? (texUnit->Enabled | texBit) : (texUnit->Enabled & ~texBit); |