summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Paul <brianp@vmware.com>2013-01-26 11:07:35 -0700
committerBrian Paul <brianp@vmware.com>2013-01-29 08:59:53 -0700
commit2180f3297285e96d7b69e1cef4414461ba42b0d2 (patch)
treeefbbc82de81955034b74eb9212900113cfd894b9
parent89551ae04f4cf994c0f7f2ac3aef7e1c57936a29 (diff)
osmesa: use _mesa_generate_mipmap() for mipmap generation, not meta
See previous commit for more info. Note: This is a candidate for the 9.0 branch. Reviewed-by: José Fonseca <jfonseca@vmware.com>
-rw-r--r--src/mesa/drivers/osmesa/osmesa.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mesa/drivers/osmesa/osmesa.c b/src/mesa/drivers/osmesa/osmesa.c
index 755f371611..c9685d87d7 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.
*/