[PATCH 3/4] mesa: don't forget about sampleBuffers in framebuffer visual update

Christoph Bumiller e0425955 at student.tuwien.ac.at
Fri Jul 22 14:41:15 PDT 2011


Otherwise multisample will never been enabled for multisample
renderbuffers.
---
 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 e27569a..23fa1b2 100644
--- a/src/mesa/main/framebuffer.c
+++ b/src/mesa/main/framebuffer.c
@@ -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;
-- 
1.7.2.2


--------------080006020201090700070608--


More information about the mesa-dev mailing list