Mesa (master): meta: Actually use mipmapping when generating mipmaps.
Eric Anholt
anholt at kemper.freedesktop.org
Wed Jan 12 19:08:37 UTC 2011
Module: Mesa
Branch: master
Commit: e1fb511570e9b2a4d015332b7d80f469bf334b2a
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=e1fb511570e9b2a4d015332b7d80f469bf334b2a
Author: Eric Anholt <eric at anholt.net>
Date: Wed Jan 12 10:12:00 2011 -0800
meta: Actually use mipmapping when generating mipmaps.
With the change to not reset baselevel, this GL_LINEAR filtering was
resulting in generating mipmaps off of the base level instead of the
next higher detail level. Fixes fbo-generatemipmap-filtering.
Reported by: Neil Roberts <neil at linux.intel.com>
---
src/mesa/drivers/common/meta.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/mesa/drivers/common/meta.c b/src/mesa/drivers/common/meta.c
index 3e69991..fd12e4d 100644
--- a/src/mesa/drivers/common/meta.c
+++ b/src/mesa/drivers/common/meta.c
@@ -2319,7 +2319,7 @@ _mesa_meta_GenerateMipmap(struct gl_context *ctx, GLenum target,
}
_mesa_BindFramebufferEXT(GL_FRAMEBUFFER_EXT, mipmap->FBO);
- _mesa_TexParameteri(target, GL_TEXTURE_MIN_FILTER, GL_LINEAR);
+ _mesa_TexParameteri(target, GL_TEXTURE_MIN_FILTER, GL_LINEAR_MIPMAP_LINEAR);
_mesa_TexParameteri(target, GL_TEXTURE_MAG_FILTER, GL_LINEAR);
_mesa_TexParameteri(target, GL_GENERATE_MIPMAP, GL_FALSE);
_mesa_TexParameteri(target, GL_TEXTURE_WRAP_S, GL_CLAMP_TO_EDGE);
More information about the mesa-commit
mailing list