diff options
author | Eric Anholt <[email protected]> | 2008-12-06 15:21:47 -0800 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2008-12-06 22:41:52 -0800 |
commit | 75b26e18a64b2fb1962e5e49dfaebd257c734ecc (patch) | |
tree | 1a38736f7928c652353b0fafe7783dd6170c2bdf /src | |
parent | a0625fa28152db08f026dc9856035c0908060154 (diff) |
intel: Fix crash in automatic mipmap generation for glCopyTex{Sub,}Image.
The images aren't mapped at this point, so we want the generic Mesa path for
GenerateMipmapEXT that does the mapping/unmapping for us. Ideally Mesa would
just call it for us.
Diffstat (limited to 'src')
-rw-r--r-- | src/mesa/drivers/dri/intel/intel_tex_copy.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/intel/intel_tex_copy.c b/src/mesa/drivers/dri/intel/intel_tex_copy.c index dd932aebc90..b893990d271 100644 --- a/src/mesa/drivers/dri/intel/intel_tex_copy.c +++ b/src/mesa/drivers/dri/intel/intel_tex_copy.c @@ -167,7 +167,7 @@ do_copy_texsubimage(struct intel_context *intel, /* GL_SGIS_generate_mipmap */ if (intelImage->level == texObj->BaseLevel && texObj->GenerateMipmap) { - intel_generate_mipmap(ctx, target, texObj); + ctx->Driver.GenerateMipmap(ctx, target, texObj); } return GL_TRUE; |