summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/renderbuffer.c
diff options
context:
space:
mode:
authorYuanhan Liu <[email protected]>2011-10-25 15:28:50 +0800
committerYuanhan Liu <[email protected]>2011-11-03 10:22:15 +0800
commit1f5bd65efa228736d41956f9e76df350dfe2d5d2 (patch)
tree50da4b5b85d3fee58c9e5d47d9923e6eea99b0c1 /src/mesa/main/renderbuffer.c
parent77cd3bf18d509dcbb2f121e4082027f4048ca623 (diff)
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 <[email protected]> Reviewed-by: Brian Paul <[email protected]>
Diffstat (limited to 'src/mesa/main/renderbuffer.c')
-rw-r--r--src/mesa/main/renderbuffer.c2
1 files changed, 1 insertions, 1 deletions
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;