From: Eric Anholt Date: Wed, 12 Jan 2011 18:12:00 +0000 (-0800) Subject: meta: Actually use mipmapping when generating mipmaps. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e1fb511570e9b2a4d015332b7d80f469bf334b2a;p=mesa.git 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 --- diff --git a/src/mesa/drivers/common/meta.c b/src/mesa/drivers/common/meta.c index 3e699912bb4..fd12e4d0a66 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);