Mesa (7.9): mesa: Add missing else in do_row_3D
Brian Paul
brianp at kemper.freedesktop.org
Mon Oct 18 14:12:24 UTC 2010
Module: Mesa
Branch: 7.9
Commit: 6f5c6e5cc507cab32697537860194bfb7fbe544d
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=6f5c6e5cc507cab32697537860194bfb7fbe544d
Author: Brian Paul <brianp at vmware.com>
Date: Mon Oct 18 08:11:45 2010 -0600
mesa: Add missing else in do_row_3D
This fixes erroneous "bad format in do_row()" messages
Signed-off-by: Brian Paul <brianp at vmware.com>
(cherry picked from commit 746b602fbdd6e7955e076c0c0d39e86b01bd3dfd)
---
src/mesa/main/mipmap.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/mesa/main/mipmap.c b/src/mesa/main/mipmap.c
index 3d1a4c4..d07892f 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;
More information about the mesa-commit
mailing list