From 1f5bd65efa228736d41956f9e76df350dfe2d5d2 Mon Sep 17 00:00:00 2001 From: Yuanhan Liu Date: Tue, 25 Oct 2011 15:28:50 +0800 Subject: [PATCH] mesa: fix inital value for new renderbuffer EXT_framebuffer_object bspec says: Get Value Type Get Command Initial Value ------------------------------- ------ ----------- ----------- RENDERBUFFER_INTERNAL_FORMAT_EXT Z+ GetRenderbufferParameterivEXT RGBA NOTE: this is a candidate for the 7.11 branch Signed-off-by: Yuanhan Liu Reviewed-by: Brian Paul --- src/mesa/main/renderbuffer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mesa/main/renderbuffer.c b/src/mesa/main/renderbuffer.c index 5dd46cc9ad0..33bec42d9d9 100644 --- a/src/mesa/main/renderbuffer.c +++ b/src/mesa/main/renderbuffer.c @@ -2011,7 +2011,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; -- 2.30.2