From 746b602fbdd6e7955e076c0c0d39e86b01bd3dfd Mon Sep 17 00:00:00 2001 From: Brian Rogers Date: Sun, 17 Oct 2010 14:21:06 -0700 Subject: mesa: Add missing else in do_row_3D This fixes erroneous "bad format in do_row()" messages Signed-off-by: Brian Paul --- src/mesa/main/mipmap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/mesa/main/mipmap.c') diff --git a/src/mesa/main/mipmap.c b/src/mesa/main/mipmap.c index d65aecdf3e..11d5a0519e 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; -- cgit v1.2.3