summaryrefslogtreecommitdiff
path: root/src/mesa
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2002-09-14 16:51:34 +0000
committerBrian Paul <brian.paul@tungstengraphics.com>2002-09-14 16:51:34 +0000
commit57aca2bf6e82cdab43575123530fce2ba54bf9c7 (patch)
tree9f1c663b9957eb4de5aab638b84237b744acf86e /src/mesa
parent99683bd830b46737e83aa4adacfa0941c6e098bf (diff)
fixed pixel pack bug in glGetTexImage()
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/main/teximage.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mesa/main/teximage.c b/src/mesa/main/teximage.c
index d87379b1f0..963a4503dd 100644
--- a/src/mesa/main/teximage.c
+++ b/src/mesa/main/teximage.c
@@ -1,4 +1,4 @@
-/* $Id: teximage.c,v 1.113 2002/09/06 14:42:04 brianp Exp $ */
+/* $Id: teximage.c,v 1.114 2002/09/14 16:51:34 brianp Exp $ */
/*
* Mesa 3-D graphics library
@@ -1285,7 +1285,7 @@ _mesa_GetTexImage( GLenum target, GLint level, GLenum format,
{
const struct gl_texture_unit *texUnit;
const struct gl_texture_object *texObj;
- struct gl_texture_image *texImage;
+ const struct gl_texture_image *texImage;
GLint maxLevels = 0;
GET_CURRENT_CONTEXT(ctx);
ASSERT_OUTSIDE_BEGIN_END_AND_FLUSH(ctx);
@@ -1360,7 +1360,7 @@ _mesa_GetTexImage( GLenum target, GLint level, GLenum format,
for (img = 0; img < depth; img++) {
for (row = 0; row < height; row++) {
/* compute destination address in client memory */
- GLvoid *dest = _mesa_image_address( &ctx->Unpack, pixels,
+ GLvoid *dest = _mesa_image_address( &ctx->Pack, pixels,
width, height, format, type,
img, row, 0);
assert(dest);