projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4cca760
)
[915] Set cliprects in the drawbuffer software fallback case as well.
author
Eric Anholt
<eric@anholt.net>
Wed, 19 Dec 2007 02:54:59 +0000
(18:54 -0800)
committer
Eric Anholt
<eric@anholt.net>
Wed, 19 Dec 2007 02:56:20 +0000
(18:56 -0800)
Otherwise, we may violate cliprect asssertions on clearing the buffers, which
isn't affected by the fallback.
src/mesa/drivers/dri/intel/intel_buffers.c
patch
|
blob
|
history
diff --git
a/src/mesa/drivers/dri/intel/intel_buffers.c
b/src/mesa/drivers/dri/intel/intel_buffers.c
index c351cfcfbc4623a61b67c1496858d05e4a149342..98928955102b651a45a1566ea8a1cf39a6f11a77 100644
(file)
--- a/
src/mesa/drivers/dri/intel/intel_buffers.c
+++ b/
src/mesa/drivers/dri/intel/intel_buffers.c
@@
-911,6
+911,9
@@
intel_draw_buffer(GLcontext * ctx, struct gl_framebuffer *fb)
/*_mesa_debug(ctx, "Software rendering\n");*/
FALLBACK(intel, INTEL_FALLBACK_DRAW_BUFFER, GL_TRUE);
colorRegion = NULL;
+
+ if (fb->Name != 0)
+ intelSetRenderbufferClipRects(intel);
}
else {
/* draw to exactly one color buffer */