projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dc8a0d1
)
Set _NEW_BUFFERS in _mesa_resize_framebuffer(). This makes sure the swrast
author
Brian Paul
<brian.paul@tungstengraphics.com>
Mon, 16 Oct 2006 17:26:30 +0000
(17:26 +0000)
committer
Brian Paul
<brian.paul@tungstengraphics.com>
Mon, 16 Oct 2006 17:26:30 +0000
(17:26 +0000)
module updates its state (CLIP_BIT) upon resizes. The driver could do this
instead, but doing it here is safer.
src/mesa/main/framebuffer.c
patch
|
blob
|
history
diff --git
a/src/mesa/main/framebuffer.c
b/src/mesa/main/framebuffer.c
index d0dbbbad02b2d06c2bb5089ed55e17a335cb63b0..465197401b7b8ab0b99f852890a07505863916b7 100644
(file)
--- 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;
+ }
}