mesa: update Visual.samples field in _mesa_update_framebuffer_visual()
authorBrian Paul <brianp@vmware.com>
Tue, 20 Jan 2009 23:53:29 +0000 (16:53 -0700)
committerBrian Paul <brianp@vmware.com>
Thu, 22 Jan 2009 22:20:09 +0000 (15:20 -0700)
src/mesa/main/framebuffer.c

index 10d05243fe1123d5b9f424914d4af28b8f3f44ff..079f457503f46f8197f376bf6dd746a5ee2f3b85 100644 (file)
@@ -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) {