intel: Make a renderbuffer wrapping a texture have the same _BaseFormat.
authorEric Anholt <eric@anholt.net>
Fri, 20 Jan 2012 01:41:39 +0000 (17:41 -0800)
committerEric Anholt <eric@anholt.net>
Fri, 27 Jan 2012 19:46:10 +0000 (11:46 -0800)
commit7cac88679bb600f35694e91859c4682c04c32f7a
tree9cbdbb1bd9657708c943b162152efd41310db17f
parentb73f5df6483b2e37235b258f705944321ee617f5
intel: Make a renderbuffer wrapping a texture have the same _BaseFormat.

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