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/fbobject.c | |
parent | 6920a355c1fafb243efc8693d845cd8b524b6b0a (diff) |
mesa: use _mesa_get_current_tex_unit() helper
Diffstat (limited to 'src/mesa/main/fbobject.c')
-rw-r--r-- | src/mesa/main/fbobject.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mesa/main/fbobject.c b/src/mesa/main/fbobject.c index 13f49da5a78..680fd22ba8f 100644 --- a/src/mesa/main/fbobject.c +++ b/src/mesa/main/fbobject.c @@ -44,6 +44,7 @@ #include "teximage.h" #include "texobj.h" #include "texstore.h" +#include "texstate.h" /** Set this to 1 to help debug FBO incompleteness problems */ @@ -1955,7 +1956,7 @@ _mesa_GenerateMipmapEXT(GLenum target) return; } - texUnit = &ctx->Texture.Unit[ctx->Texture.CurrentUnit]; + texUnit = _mesa_get_current_tex_unit(ctx); texObj = _mesa_select_tex_object(ctx, texUnit, target); _mesa_lock_texture(ctx, texObj); |