summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrian Rogers <[email protected]>2010-10-17 14:21:06 -0700
committerBrian Paul <[email protected]>2010-10-18 08:11:04 -0600
commit746b602fbdd6e7955e076c0c0d39e86b01bd3dfd (patch)
tree62078d06cce34dadfd5e8d6dfd9b7997037bf007
parent01e0aaefcc0b9dbef47df4c2fc08118013db6894 (diff)
mesa: Add missing else in do_row_3D
This fixes erroneous "bad format in do_row()" messages Signed-off-by: Brian Paul <[email protected]>
-rw-r--r--src/mesa/main/mipmap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/main/mipmap.c b/src/mesa/main/mipmap.c
index d65aecdf3e5..11d5a0519e0 100644
--- a/src/mesa/main/mipmap.c
+++ b/src/mesa/main/mipmap.c
@@ -606,7 +606,7 @@ do_row_3D(GLenum datatype, GLuint comps, GLint srcWidth,
FILTER_3D(0);
}
}
- if ((datatype == GL_BYTE) && (comps == 4)) {
+ else if ((datatype == GL_BYTE) && (comps == 4)) {
DECLARE_ROW_POINTERS(GLbyte, 4);
for (i = j = 0, k = k0; i < (GLuint) dstWidth;