mesa: don't forget about sampleBuffers in framebuffer visual update
authorChristoph Bumiller <e0425955@student.tuwien.ac.at>
Wed, 27 Jul 2011 10:13:37 +0000 (12:13 +0200)
committerChristoph Bumiller <e0425955@student.tuwien.ac.at>
Wed, 27 Jul 2011 10:13:37 +0000 (12:13 +0200)
Otherwise multisample will never been enabled for multisample
renderbuffers.

Reviewed-by: Brian Paul <brianp@vmware.com>
src/mesa/main/framebuffer.c

index e27569a6facde606ab5d1cd8d3906ac190ea2fa5..23fa1b2c11e3d9c633bae99d9afe0e6972c86704 100644 (file)
@@ -548,6 +548,7 @@ _mesa_update_framebuffer_visual(struct gl_context *ctx,
             fb->Visual.rgbBits = fb->Visual.redBits
                + fb->Visual.greenBits + fb->Visual.blueBits;
             fb->Visual.samples = rb->NumSamples;
+            fb->Visual.sampleBuffers = rb->NumSamples > 0 ? 1 : 0;
             if (_mesa_get_format_color_encoding(fmt) == GL_SRGB)
                 fb->Visual.sRGBCapable = ctx->Const.sRGBCapable;
             break;