Browse Source

Set _NEW_BUFFERS in _mesa_resize_framebuffer(). This makes sure the swrast

module updates its state (CLIP_BIT) upon resizes.  The driver could do this
instead, but doing it here is safer.
tags/mesa_6_5_2
Brian Paul 19 years ago
parent
commit
041d64812e
1 changed files with 7 additions and 2 deletions
  1. 7
    2
      src/mesa/main/framebuffer.c

+ 7
- 2
src/mesa/main/framebuffer.c View File

@@ -327,9 +327,14 @@ _mesa_resize_framebuffer(GLcontext *ctx, struct gl_framebuffer *fb,
fb->Width = width;
fb->Height = height;

/* to update scissor / window bounds */
if (ctx)
if (ctx) {
/* update scissor / window bounds */
_mesa_update_draw_buffer_bounds(ctx);
/* Signal new buffer state so that swrast will update its clipping
* info (the CLIP_BIT flag).
*/
ctx->NewState |= _NEW_BUFFERS;
}
}



Loading…
Cancel
Save