diff options
author | Roland Scheidegger <[email protected]> | 2009-03-31 03:18:35 +0200 |
---|---|---|
committer | Roland Scheidegger <[email protected]> | 2009-03-31 03:19:29 +0200 |
commit | 4d89eff0b6fd6902a2fccb87c474d6a8f6d61526 (patch) | |
tree | 55e783ea02cd8262639c61d82e651847acb195d9 /src/mesa/main/mipmap.c | |
parent | 3eeeaf04e31b8aed831f29d8a192f3f9a0a8ef03 (diff) |
fix ugly copy/paste error in mipmap generation code
Diffstat (limited to 'src/mesa/main/mipmap.c')
-rw-r--r-- | 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 7001211a131..bc8658beffe 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; |