Mesa (arb_fbo): mesa: update Visual. samples field in _mesa_update_framebuffer_visual()
Brian Paul
brianp at kemper.freedesktop.org
Tue Jan 20 23:59:13 UTC 2009
Module: Mesa
Branch: arb_fbo
Commit: 126ae45565da04173710eb024b0533a0dbf74006
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=126ae45565da04173710eb024b0533a0dbf74006
Author: Brian Paul <brianp at vmware.com>
Date: Tue Jan 20 16:53:29 2009 -0700
mesa: update Visual.samples field in _mesa_update_framebuffer_visual()
---
src/mesa/main/framebuffer.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/src/mesa/main/framebuffer.c b/src/mesa/main/framebuffer.c
index 10d0524..079f457 100644
--- a/src/mesa/main/framebuffer.c
+++ b/src/mesa/main/framebuffer.c
@@ -543,6 +543,7 @@ _mesa_update_framebuffer_visual(struct gl_framebuffer *fb)
fb->Visual.rgbBits = fb->Visual.redBits
+ fb->Visual.greenBits + fb->Visual.blueBits;
fb->Visual.floatMode = GL_FALSE;
+ fb->Visual.samples = rb->NumSamples;
break;
}
else if (rb->_BaseFormat == GL_COLOR_INDEX) {
More information about the mesa-commit
mailing list