summaryrefslogtreecommitdiff
path: root/src/mesa
diff options
context:
space:
mode:
authorBrian Paul <brianp@vmware.com>2009-11-16 08:21:28 -0700
committerBrian Paul <brianp@vmware.com>2009-11-16 08:21:28 -0700
commita719395b458ef59efe4e8746e390b006a0b8792b (patch)
tree94e7dc929d8439bca99532d40cc7077e72070160 /src/mesa
parentecb03d75a2961b28ab3d90fdd5df768608fc9447 (diff)
mesa: use _mesa_get_current_tex_object()
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/main/fbobject.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/mesa/main/fbobject.c b/src/mesa/main/fbobject.c
index 2d0bfb3ad7..a2264b0dbf 100644
--- a/src/mesa/main/fbobject.c
+++ b/src/mesa/main/fbobject.c
@@ -1942,7 +1942,6 @@ _mesa_GetFramebufferAttachmentParameterivEXT(GLenum target, GLenum attachment,
void GLAPIENTRY
_mesa_GenerateMipmapEXT(GLenum target)
{
- struct gl_texture_unit *texUnit;
struct gl_texture_object *texObj;
GET_CURRENT_CONTEXT(ctx);
@@ -1961,8 +1960,7 @@ _mesa_GenerateMipmapEXT(GLenum target)
return;
}
- texUnit = _mesa_get_current_tex_unit(ctx);
- texObj = _mesa_select_tex_object(ctx, texUnit, target);
+ texObj = _mesa_get_current_tex_object(ctx, target);
_mesa_lock_texture(ctx, texObj);
if (target == GL_TEXTURE_CUBE_MAP) {