projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a0625fa
)
intel: Fix crash in automatic mipmap generation for glCopyTex{Sub,}Image.
author
Eric Anholt
<eric@anholt.net>
Sat, 6 Dec 2008 23:21:47 +0000
(15:21 -0800)
committer
Eric Anholt
<eric@anholt.net>
Sun, 7 Dec 2008 06:41:52 +0000
(22:41 -0800)
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.
src/mesa/drivers/dri/intel/intel_tex_copy.c
patch
|
blob
|
history
diff --git
a/src/mesa/drivers/dri/intel/intel_tex_copy.c
b/src/mesa/drivers/dri/intel/intel_tex_copy.c
index dd932aebc906a95c243a7c28f2981cb972dcb8c3..b893990d27122620ad640bfd945a334770bae5ea 100644
(file)
--- 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_m
ipmap(ctx, target, texObj);
+
ctx->Driver.GenerateM
ipmap(ctx, target, texObj);
}
return GL_TRUE;