mesa: Avoid short-circuiting realloc of renderbuffers to new sample count.
Fixes piglit EXT_framebuffer_multisample/renderbuffer-samples. Reviewed-by: Brian Paul <brianp@vmware.com> NOTE: This is a candidate for the 8.0 branch.
This commit is contained in:
@@ -1375,7 +1375,8 @@ renderbuffer_storage(GLenum target, GLenum internalFormat,
|
|||||||
|
|
||||||
if (rb->InternalFormat == internalFormat &&
|
if (rb->InternalFormat == internalFormat &&
|
||||||
rb->Width == (GLuint) width &&
|
rb->Width == (GLuint) width &&
|
||||||
rb->Height == (GLuint) height) {
|
rb->Height == (GLuint) height &&
|
||||||
|
rb->NumSamples == samples) {
|
||||||
/* no change in allocation needed */
|
/* no change in allocation needed */
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user