intel: Finalize the miptree before mapping it for fallbacks.

Fixes segfault in mipmap_view.c demo.  Bug #27212.
This commit is contained in:
Eric Anholt 2010-06-15 12:18:40 -07:00
parent 1ea7a6a44d
commit 6dd6830e6f
1 changed files with 2 additions and 0 deletions

View 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));
}
}