Mesa (master): fix ugly copy/paste error in mipmap generation code
Roland Scheidegger
sroland at kemper.freedesktop.org
Tue Mar 31 01:19:59 UTC 2009
Module: Mesa
Branch: master
Commit: 4d89eff0b6fd6902a2fccb87c474d6a8f6d61526
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=4d89eff0b6fd6902a2fccb87c474d6a8f6d61526
Author: Roland Scheidegger <sroland at vmware.com>
Date: Tue Mar 31 03:18:35 2009 +0200
fix ugly copy/paste error in mipmap generation code
---
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 7001211..bc8658b 100644
--- a/src/mesa/main/mipmap.c
+++ b/src/mesa/main/mipmap.c
@@ -195,7 +195,7 @@ do_row(GLenum datatype, GLuint comps, GLint srcWidth,
}
}
- if (datatype == GL_BYTE && comps == 4) {
+ else if (datatype == GL_BYTE && comps == 4) {
GLuint i, j, k;
const GLbyte(*rowA)[4] = (const GLbyte(*)[4]) srcRowA;
const GLbyte(*rowB)[4] = (const GLbyte(*)[4]) srcRowB;
More information about the mesa-commit
mailing list