projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
26df8af
)
meta: Make sure texImage->TexFormat is valid for CopyTex(Sub)Image.
author
Michel Dänzer
<daenzer@vmware.com>
Sat, 3 Oct 2009 16:01:57 +0000
(18:01 +0200)
committer
Michel Dänzer
<daenzer@vmware.com>
Sat, 3 Oct 2009 16:01:57 +0000
(18:01 +0200)
src/mesa/drivers/common/meta.c
patch
|
blob
|
history
diff --git
a/src/mesa/drivers/common/meta.c
b/src/mesa/drivers/common/meta.c
index 12e0bdde88359a6643aece56f13b8b80ded0512a..e1732241b3a0a98b9e5ff3366b39a051bec156f7 100644
(file)
--- a/
src/mesa/drivers/common/meta.c
+++ b/
src/mesa/drivers/common/meta.c
@@
-55,6
+55,7
@@
#include "main/stencil.h"
#include "main/texobj.h"
#include "main/texenv.h"
+#include "main/texformat.h"
#include "main/teximage.h"
#include "main/texparam.h"
#include "main/texstate.h"
@@
-2471,6
+2472,12
@@
copy_tex_image(GLcontext *ctx, GLuint dims, GLenum target, GLint level,
return;
}
+ if (texImage->TexFormat == &_mesa_null_texformat)
+ texImage->TexFormat = ctx->Driver.ChooseTextureFormat(ctx,
+ internalFormat,
+ format,
+ type);
+
_mesa_unlock_texture(ctx, texObj); /* need to unlock first */
/*