intel: Finalize the miptree before mapping it for fallbacks.
authorEric Anholt <eric@anholt.net>
Tue, 15 Jun 2010 19:18:40 +0000 (12:18 -0700)
committerEric Anholt <eric@anholt.net>
Sat, 19 Jun 2010 00:44:47 +0000 (17:44 -0700)
Fixes segfault in mipmap_view.c demo.  Bug #27212.

src/mesa/drivers/dri/intel/intel_span.c

index c30552c5a79d9684b24b20056ef368669f884832..fb840c1020d800c5bd8b5203e448f6db16d8b5a7 100644 (file)
@@ -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));
       }
    }