summaryrefslogtreecommitdiff
path: root/src/mesa/main
diff options
context:
space:
mode:
authorBrian Paul <brianp@vmware.com>2009-09-27 21:14:43 -0600
committerBrian Paul <brianp@vmware.com>2009-09-27 21:14:43 -0600
commit749e50442a2a4e6a15434dfed47a9b87df353fa6 (patch)
tree9d724b2f079a8be3780cee742cdef138be243f3e /src/mesa/main
parentef089604a9cdcb4efa0850de393e04aa8d002fae (diff)
mesa: fix render buffer _BaseFormat assignment
Diffstat (limited to 'src/mesa/main')
-rw-r--r--src/mesa/main/texrender.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/mesa/main/texrender.c b/src/mesa/main/texrender.c
index 11073f76bf..54e5668abc 100644
--- a/src/mesa/main/texrender.c
+++ b/src/mesa/main/texrender.c
@@ -507,13 +507,7 @@ update_wrapper(GLcontext *ctx, const struct gl_renderbuffer_attachment *att)
trb->Base._ActualFormat = trb->TexImage->InternalFormat;
trb->Base.DataType = CHAN_TYPE;
}
- trb->Base._BaseFormat = trb->TexImage->TexFormat->BaseFormat;
-#if 0
- /* fix/avoid this assertion someday */
- ASSERT(trb->Base._BaseFormat == GL_RGB ||
- trb->Base._BaseFormat == GL_RGBA ||
- trb->Base._BaseFormat == GL_DEPTH_COMPONENT);
-#endif
+ trb->Base._BaseFormat = trb->TexImage->_BaseFormat;
trb->Base.Data = trb->TexImage->Data;
trb->Base.RedBits = _mesa_get_format_bits(texFormat, GL_TEXTURE_RED_SIZE);