diff options
author | Brian <[email protected]> | 2007-08-01 15:38:59 -0600 |
---|---|---|
committer | Brian <[email protected]> | 2007-08-01 15:38:59 -0600 |
commit | 54135597b8a23a7349f5fa3193642758c229777e (patch) | |
tree | 929da5f6bff3bd4222fab4783b81b64d1a959dda /src/mesa/pipe/softpipe | |
parent | 0c4acfe15a0555a6f3da02ab17e58cc379df11fd (diff) |
get cliprect bounds after softpipe_update_derived()
Diffstat (limited to 'src/mesa/pipe/softpipe')
-rw-r--r-- | src/mesa/pipe/softpipe/sp_clear.c | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/src/mesa/pipe/softpipe/sp_clear.c b/src/mesa/pipe/softpipe/sp_clear.c index b3bbc96f307..a133b488918 100644 --- a/src/mesa/pipe/softpipe/sp_clear.c +++ b/src/mesa/pipe/softpipe/sp_clear.c @@ -34,6 +34,7 @@ #include "sp_clear.h" #include "sp_context.h" #include "sp_surface.h" +#include "sp_state.h" #include "colormac.h" @@ -98,10 +99,14 @@ softpipe_clear(struct pipe_context *pipe, GLboolean color, GLboolean depth, GLboolean stencil, GLboolean accum) { const struct softpipe_context *softpipe = softpipe_context(pipe); - const GLint x = softpipe->cliprect.minx; - const GLint y = softpipe->cliprect.miny; - const GLint w = softpipe->cliprect.maxx - x; - const GLint h = softpipe->cliprect.maxy - y; + GLint x, y, w, h; + + softpipe_update_derived(softpipe); + + x = softpipe->cliprect.minx; + y = softpipe->cliprect.miny; + w = softpipe->cliprect.maxx - x; + h = softpipe->cliprect.maxy - y; if (color) { GLuint i; |