Browse Source

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.
tags/i965-primitive-restart-v2
Eric Anholt 15 years ago
parent
commit
0e8d156c3c
1 changed files with 2 additions and 1 deletions
  1. 2
    1
      src/mesa/main/fbobject.c

+ 2
- 1
src/mesa/main/fbobject.c View File

@@ -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;
}

Loading…
Cancel
Save