diff options
author | Brian <[email protected]> | 2007-08-17 10:27:53 +0100 |
---|---|---|
committer | Brian <[email protected]> | 2007-08-17 10:27:53 +0100 |
commit | 93efcf50fae7bdd9ee9468f4f4049ecb4c06e2df (patch) | |
tree | ad265c6428e8c86f4973c33aacc873f650451161 /src/mesa/pipe/softpipe/sp_clear.c | |
parent | 04f2078860d0649b016e9281f86725cb42e15b42 (diff) |
assertions
Diffstat (limited to 'src/mesa/pipe/softpipe/sp_clear.c')
-rw-r--r-- | src/mesa/pipe/softpipe/sp_clear.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mesa/pipe/softpipe/sp_clear.c b/src/mesa/pipe/softpipe/sp_clear.c index 6e5e5106379..caa6ac1c84c 100644 --- a/src/mesa/pipe/softpipe/sp_clear.c +++ b/src/mesa/pipe/softpipe/sp_clear.c @@ -55,5 +55,8 @@ softpipe_clear(struct pipe_context *pipe, struct pipe_surface *ps, w = softpipe->framebuffer.cbufs[0]->width; h = softpipe->framebuffer.cbufs[0]->height; + assert(w <= ps->region->pitch); + assert(h <= ps->region->height); + pipe->region_fill(pipe, ps->region, 0, x, y, w, h, clearValue); } |