projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b02ef74
)
mesa: Copy textures' base format into wrapper renderbuffer.
author
José Fonseca
<jfonseca@vmware.com>
Mon, 5 Oct 2009 10:05:34 +0000
(11:05 +0100)
committer
José Fonseca
<jfonseca@vmware.com>
Mon, 5 Oct 2009 15:49:21 +0000
(16:49 +0100)
Otherwise st_copy_texsubimage will fallback to software blit due to
inconsistent base formats.
src/mesa/state_tracker/st_cb_fbo.c
patch
|
blob
|
history
diff --git
a/src/mesa/state_tracker/st_cb_fbo.c
b/src/mesa/state_tracker/st_cb_fbo.c
index fe0a1214933844c57be4aac9cb9407f5980897f0..a0495209013549ddd7f640e0eaafe111d1eb8b58 100644
(file)
--- a/
src/mesa/state_tracker/st_cb_fbo.c
+++ b/
src/mesa/state_tracker/st_cb_fbo.c
@@
-383,6
+383,7
@@
st_render_texture(GLcontext *ctx,
rb->Width = texImage->Width2;
rb->Height = texImage->Height2;
+ rb->_BaseFormat = texImage->_BaseFormat;
/*printf("***** render to texture level %d: %d x %d\n", att->TextureLevel, rb->Width, rb->Height);*/
/*printf("***** pipe texture %d x %d\n", pt->width[0], pt->height[0]);*/