From: Brian Paul Date: Mon, 28 Sep 2009 03:14:43 +0000 (-0600) Subject: mesa: fix render buffer _BaseFormat assignment X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=749e50442a2a4e6a15434dfed47a9b87df353fa6;p=mesa.git mesa: fix render buffer _BaseFormat assignment --- diff --git a/src/mesa/main/texrender.c b/src/mesa/main/texrender.c index 11073f76bf6..54e5668abc2 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);