projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3a21203
)
fixed cube texture auto-mipmap generation bug (641363)
author
Brian Paul
<brian.paul@tungstengraphics.com>
Wed, 20 Nov 2002 21:39:39 +0000
(21:39 +0000)
committer
Brian Paul
<brian.paul@tungstengraphics.com>
Wed, 20 Nov 2002 21:39:39 +0000
(21:39 +0000)
src/mesa/main/texstore.c
patch
|
blob
|
history
diff --git
a/src/mesa/main/texstore.c
b/src/mesa/main/texstore.c
index 3f6afbfa9471f7fc7cd3ae6d18dd33543e02db03..1803eeb23232c5d74f3cc310879cd8de73d3b596 100644
(file)
--- a/
src/mesa/main/texstore.c
+++ b/
src/mesa/main/texstore.c
@@
-1,8
+1,8
@@
-/* $Id: texstore.c,v 1.4
7 2002/10/30 19:57:21
brianp Exp $ */
+/* $Id: texstore.c,v 1.4
8 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;