[Mesa-dev] [PATCH 3/5] mesa: fix inital value for new renderbuffer

Brian Paul brianp at vmware.com
Wed Nov 2 06:18:41 PDT 2011


On 11/02/2011 03:56 AM, Yuanhan Liu wrote:
> EXT_framebuffer_object bspec says:
>
>      Get Value                          Type    Get Command 		Initial Value
>      -------------------------------    ------  -----------      	-----------
>      RENDERBUFFER_INTERNAL_FORMAT_EXT   Z+     GetRenderbufferParameterivEXT  RGBA
>
> Signed-off-by: Yuanhan Liu<yuanhan.liu at linux.intel.com>
> ---
>   src/mesa/main/renderbuffer.c |    2 +-
>   1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/src/mesa/main/renderbuffer.c b/src/mesa/main/renderbuffer.c
> index 70011e6..b6eea79 100644
> --- a/src/mesa/main/renderbuffer.c
> +++ b/src/mesa/main/renderbuffer.c
> @@ -1984,7 +1984,7 @@ _mesa_init_renderbuffer(struct gl_renderbuffer *rb, GLuint name)
>
>      rb->Width = 0;
>      rb->Height = 0;
> -   rb->InternalFormat = GL_NONE;
> +   rb->InternalFormat = GL_RGBA;
>      rb->Format = MESA_FORMAT_NONE;
>
>      rb->DataType = GL_NONE;


Reviewed-by: Brian Paul <brianp at vmware.com>

Looks like a candidate for the 7.11 branch too.

-Brian


More information about the mesa-dev mailing list