diff options
author | Eric Anholt <[email protected]> | 2012-01-11 13:46:43 -0800 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2012-01-12 12:34:13 -0800 |
commit | 0e8d156c3cd70a67c99a82e42e7875f69b6a5b94 (patch) | |
tree | 24516270df08cf08f21b7d35c0f9a896491efc7b /src/mesa/main/fbobject.c | |
parent | f83756f80f509fc51030853f8aa0fef3309fe886 (diff) |
mesa: Avoid short-circuiting realloc of renderbuffers to new sample count.
Fixes piglit EXT_framebuffer_multisample/renderbuffer-samples.
Reviewed-by: Brian Paul <[email protected]>
NOTE: This is a candidate for the 8.0 branch.
Diffstat (limited to 'src/mesa/main/fbobject.c')
-rw-r--r-- | 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 de94da6df07..0524959075f 100644 --- a/src/mesa/main/fbobject.c +++ b/src/mesa/main/fbobject.c @@ -1375,7 +1375,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; } |