diff options
author | Brian Paul <brian.paul@tungstengraphics.com> | 2005-09-22 05:19:57 +0000 |
---|---|---|
committer | Brian Paul <brian.paul@tungstengraphics.com> | 2005-09-22 05:19:57 +0000 |
commit | 676d0accf5cc43e86057b14cfb8bba9316932582 (patch) | |
tree | eaefcddf33d92bd92adac7106701e99dc2b5da85 /src/mesa/main/framebuffer.c | |
parent | f1e2826856d7df00d0e98106b93ddab51b26ff04 (diff) |
Replace gl_renderbuffer.ComponentSizes[] with separate RedBits, GreenBits,
BlueBits, etc fields.
Diffstat (limited to 'src/mesa/main/framebuffer.c')
-rw-r--r-- | src/mesa/main/framebuffer.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/mesa/main/framebuffer.c b/src/mesa/main/framebuffer.c index 628afc7a86..4ad82c85ff 100644 --- a/src/mesa/main/framebuffer.c +++ b/src/mesa/main/framebuffer.c @@ -329,13 +329,13 @@ _mesa_update_framebuffer_visual(struct gl_framebuffer *fb) if (fb->Attachment[BUFFER_FRONT_LEFT].Renderbuffer) { fb->Visual.redBits - = fb->Attachment[BUFFER_FRONT_LEFT].Renderbuffer->ComponentSizes[0]; + = fb->Attachment[BUFFER_FRONT_LEFT].Renderbuffer->RedBits; fb->Visual.greenBits - = fb->Attachment[BUFFER_FRONT_LEFT].Renderbuffer->ComponentSizes[1]; + = fb->Attachment[BUFFER_FRONT_LEFT].Renderbuffer->GreenBits; fb->Visual.blueBits - = fb->Attachment[BUFFER_FRONT_LEFT].Renderbuffer->ComponentSizes[2]; + = fb->Attachment[BUFFER_FRONT_LEFT].Renderbuffer->BlueBits; fb->Visual.alphaBits - = fb->Attachment[BUFFER_FRONT_LEFT].Renderbuffer->ComponentSizes[3]; + = fb->Attachment[BUFFER_FRONT_LEFT].Renderbuffer->AlphaBits; fb->Visual.rgbBits = fb->Visual.redBits + fb->Visual.greenBits + fb->Visual.blueBits; fb->Visual.floatMode = GL_FALSE; @@ -344,13 +344,13 @@ _mesa_update_framebuffer_visual(struct gl_framebuffer *fb) if (fb->Attachment[BUFFER_DEPTH].Renderbuffer) { fb->Visual.haveDepthBuffer = GL_TRUE; fb->Visual.depthBits - = fb->Attachment[BUFFER_DEPTH].Renderbuffer->ComponentSizes[0]; + = fb->Attachment[BUFFER_DEPTH].Renderbuffer->DepthBits; } if (fb->Attachment[BUFFER_STENCIL].Renderbuffer) { fb->Visual.haveStencilBuffer = GL_TRUE; fb->Visual.stencilBits - = fb->Attachment[BUFFER_STENCIL].Renderbuffer->ComponentSizes[0]; + = fb->Attachment[BUFFER_STENCIL].Renderbuffer->StencilBits; } compute_depth_max(fb); |