summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Anholt <eric@anholt.net>2010-06-15 12:18:40 -0700
committerEric Anholt <eric@anholt.net>2010-06-18 17:44:47 -0700
commit6dd6830e6f87044b9ede10d324574cfe1f66a751 (patch)
treea64e467dbf302118c65bc8c773916c22545fc0dc
parent1ea7a6a44db7ef8199b7fe78956e158727092479 (diff)
intel: Finalize the miptree before mapping it for fallbacks.
Fixes segfault in mipmap_view.c demo. Bug #27212.
-rw-r--r--src/mesa/drivers/dri/intel/intel_span.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/intel/intel_span.c b/src/mesa/drivers/dri/intel/intel_span.c
index c30552c5a7..fb840c1020 100644
--- a/src/mesa/drivers/dri/intel/intel_span.c
+++ b/src/mesa/drivers/dri/intel/intel_span.c
@@ -257,6 +257,8 @@ intelSpanRenderStart(GLcontext * ctx)
for (i = 0; i < ctx->Const.MaxTextureImageUnits; i++) {
if (ctx->Texture.Unit[i]._ReallyEnabled) {
struct gl_texture_object *texObj = ctx->Texture.Unit[i]._Current;
+
+ intel_finalize_mipmap_tree(intel, i);
intel_tex_map_images(intel, intel_texture_object(texObj));
}
}