projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b73f5df
)
intel: Make a renderbuffer wrapping a texture have the same _BaseFormat.
author
Eric Anholt
<eric@anholt.net>
Fri, 20 Jan 2012 01:41:39 +0000
(17:41 -0800)
committer
Eric Anholt
<eric@anholt.net>
Fri, 27 Jan 2012 19:46:10 +0000
(11:46 -0800)
Otherwise, when you asked for the _BaseFormat of an rb wrapping a
GL_RGB texture, you got GL_RGBA because that's what we were storing
the texture data as.
NOTE: This is a candidate for the 8.0 branch.
src/mesa/drivers/dri/intel/intel_fbo.c
patch
|
blob
|
history
diff --git
a/src/mesa/drivers/dri/intel/intel_fbo.c
b/src/mesa/drivers/dri/intel/intel_fbo.c
index 963034423d277cb07986e6ccdb100fa56afaad56..f4a25a182f315accb08aac541b004974400a91f1 100644
(file)
--- a/
src/mesa/drivers/dri/intel/intel_fbo.c
+++ b/
src/mesa/drivers/dri/intel/intel_fbo.c
@@
-475,7
+475,7
@@
intel_renderbuffer_update_wrapper(struct intel_context *intel,
rb->Format = image->TexFormat;
rb->InternalFormat = image->InternalFormat;
- rb->_BaseFormat =
_mesa_get_format_base_format(rb->Format)
;
+ rb->_BaseFormat =
image->_BaseFormat
;
rb->Width = mt->level[level].width;
rb->Height = mt->level[level].height;