diff options
author | Brian Paul <[email protected]> | 2002-11-20 21:39:39 +0000 |
---|---|---|
committer | Brian Paul <[email protected]> | 2002-11-20 21:39:39 +0000 |
commit | 3ac8105e9cbed4c531c38636f83065b2ef3ab002 (patch) | |
tree | a963fe259c63812f2d091e5ca78cdfbad53357b7 /src/mesa/main | |
parent | 3a212032e76898df9cf32e179cade2fa5eb60732 (diff) |
fixed cube texture auto-mipmap generation bug (641363)
Diffstat (limited to 'src/mesa/main')
-rw-r--r-- | src/mesa/main/texstore.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mesa/main/texstore.c b/src/mesa/main/texstore.c index 3f6afbfa947..1803eeb2323 100644 --- a/src/mesa/main/texstore.c +++ b/src/mesa/main/texstore.c @@ -1,8 +1,8 @@ -/* $Id: texstore.c,v 1.47 2002/10/30 19:57:21 brianp Exp $ */ +/* $Id: texstore.c,v 1.48 2002/11/20 21:39:39 brianp Exp $ */ /* * Mesa 3-D graphics library - * Version: 4.1 + * Version: 5.1 * * Copyright (C) 1999-2002 Brian Paul All Rights Reserved. * @@ -1968,7 +1968,7 @@ _mesa_generate_mipmap(GLcontext *ctx, GLenum target, GLint border, bytesPerTexel; /* get src image parameters */ - srcImage = texObj->Image[level]; + srcImage = _mesa_select_tex_image(ctx, texUnit, target, level); ASSERT(srcImage); srcWidth = srcImage->Width; srcHeight = srcImage->Height; |