diff options
author | Brian Paul <brian.paul@tungstengraphics.com> | 2006-10-16 17:26:30 +0000 |
---|---|---|
committer | Brian Paul <brian.paul@tungstengraphics.com> | 2006-10-16 17:26:30 +0000 |
commit | 041d64812e4fa7a0444aa35c59d14ce85240b5de (patch) | |
tree | 0f41666a86385b403f59b20b5075663654d79f59 /src | |
parent | dc8a0d19368a235ebd0fe86ce7b7142dfa911dff (diff) |
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.
Diffstat (limited to 'src')
-rw-r--r-- | src/mesa/main/framebuffer.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/mesa/main/framebuffer.c b/src/mesa/main/framebuffer.c index d0dbbbad02..465197401b 100644 --- a/src/mesa/main/framebuffer.c +++ b/src/mesa/main/framebuffer.c @@ -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; + } } |