[Mesa-dev] [PATCH 2/5] mesa: Avoid short-circuiting realloc of renderbuffers to new sample count.

Eric Anholt eric at anholt.net
Wed Jan 11 14:46:04 PST 2012


Fixes piglit EXT_framebuffer_multisample/renderbuffer-samples.
---
 src/mesa/main/fbobject.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/src/mesa/main/fbobject.c b/src/mesa/main/fbobject.c
index aefcaf3..e6bab4b 100644
--- a/src/mesa/main/fbobject.c
+++ b/src/mesa/main/fbobject.c
@@ -1395,7 +1395,8 @@ renderbuffer_storage(GLenum target, GLenum internalFormat,
 
    if (rb->InternalFormat == internalFormat &&
        rb->Width == (GLuint) width &&
-       rb->Height == (GLuint) height) {
+       rb->Height == (GLuint) height &&
+       rb->NumSamples == samples) {
       /* no change in allocation needed */
       return;
    }
-- 
1.7.7.3



More information about the mesa-dev mailing list