summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Paul <brianp@vmware.com>2009-01-20 16:53:29 -0700
committerBrian Paul <brianp@vmware.com>2009-01-22 15:20:09 -0700
commit23524e87339b25be75580a2dd2ea296b1741bffb (patch)
treed0517b46b58217d94dc1c5a696f16287b83d2765
parent4f3514e410c7b743a99f509c176f75b2a3182948 (diff)
mesa: update Visual.samples field in _mesa_update_framebuffer_visual()
-rw-r--r--src/mesa/main/framebuffer.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mesa/main/framebuffer.c b/src/mesa/main/framebuffer.c
index 10d05243fe..079f457503 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) {