diff options
author | Brian Paul <[email protected]> | 2002-09-06 14:42:04 +0000 |
---|---|---|
committer | Brian Paul <[email protected]> | 2002-09-06 14:42:04 +0000 |
commit | 6c25e3a111e19587b288dcf5384b8e5eda3edc80 (patch) | |
tree | a36d1beb678990e0dac2261df3ad12a5a4f8a316 /src | |
parent | 3f25b1a3588f54d4c147df6c0768ed10e486f52a (diff) |
incorrect dimenstion passed to texture_error_check() in compressed teximage functions
Diffstat (limited to 'src')
-rw-r--r-- | src/mesa/main/teximage.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mesa/main/teximage.c b/src/mesa/main/teximage.c index e7df504fd74..d87379b1f0a 100644 --- a/src/mesa/main/teximage.c +++ b/src/mesa/main/teximage.c @@ -1,4 +1,4 @@ -/* $Id: teximage.c,v 1.112 2002/09/03 18:05:17 brianp Exp $ */ +/* $Id: teximage.c,v 1.113 2002/09/06 14:42:04 brianp Exp $ */ /* * Mesa 3-D graphics library @@ -2306,7 +2306,7 @@ _mesa_CompressedTexImage2DARB(GLenum target, GLint level, struct gl_texture_image *texImage; if (texture_error_check(ctx, target, level, internalFormat, - GL_NONE, GL_NONE, 1, width, height, 1, border)) { + GL_NONE, GL_NONE, 2, width, height, 1, border)) { return; /* error in texture image was detected */ } @@ -2404,7 +2404,7 @@ _mesa_CompressedTexImage3DARB(GLenum target, GLint level, struct gl_texture_image *texImage; if (texture_error_check(ctx, target, level, internalFormat, - GL_NONE, GL_NONE, 1, width, height, depth, border)) { + GL_NONE, GL_NONE, 3, width, height, depth, border)) { return; /* error in texture image was detected */ } @@ -2445,7 +2445,7 @@ _mesa_CompressedTexImage3DARB(GLenum target, GLint level, else if (target == GL_PROXY_TEXTURE_3D) { /* Proxy texture: check for errors and update proxy state */ GLenum error = texture_error_check(ctx, target, level, internalFormat, - GL_NONE, GL_NONE, 1, width, height, depth, border); + GL_NONE, GL_NONE, 3, width, height, depth, border); if (!error) { struct gl_texture_unit *texUnit; struct gl_texture_image *texImage; |