From 2180f3297285e96d7b69e1cef4414461ba42b0d2 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Sat, 26 Jan 2013 11:07:35 -0700 Subject: osmesa: use _mesa_generate_mipmap() for mipmap generation, not meta MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit See previous commit for more info. Note: This is a candidate for the 9.0 branch. Reviewed-by: José Fonseca --- src/mesa/drivers/osmesa/osmesa.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/mesa/drivers/osmesa') diff --git a/src/mesa/drivers/osmesa/osmesa.c b/src/mesa/drivers/osmesa/osmesa.c index 755f371611e..c9685d87d79 100644 --- a/src/mesa/drivers/osmesa/osmesa.c +++ b/src/mesa/drivers/osmesa/osmesa.c @@ -42,6 +42,7 @@ #include "main/framebuffer.h" #include "main/imports.h" #include "main/macros.h" +#include "main/mipmap.h" #include "main/mtypes.h" #include "main/renderbuffer.h" #include "main/version.h" @@ -783,6 +784,8 @@ OSMesaCreateContextExt( GLenum format, GLint depthBits, GLint stencilBits, ctx->Driver.MapRenderbuffer = osmesa_MapRenderbuffer; ctx->Driver.UnmapRenderbuffer = osmesa_UnmapRenderbuffer; + ctx->Driver.GenerateMipmap = _mesa_generate_mipmap; + /* Extend the software rasterizer with our optimized line and triangle * drawing functions. */ -- cgit v1.2.3