diff options
author | Brian <[email protected]> | 2007-08-08 16:06:48 -0600 |
---|---|---|
committer | Brian <[email protected]> | 2007-08-08 16:10:40 -0600 |
commit | 31132546891e0fd0f0fc889506fb5e46c0075c4c (patch) | |
tree | f4aa4b44c11c726fa0f851c1988f88ee095fa81b | |
parent | 960bf97c9f9cd98c0a26f26a2fa23960ae96aa6e (diff) |
new assertions
-rw-r--r-- | src/mesa/drivers/dri/intel_winsys/intel_surface.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/intel_winsys/intel_surface.c b/src/mesa/drivers/dri/intel_winsys/intel_surface.c index 3fa40271c83..d2e2dabadea 100644 --- a/src/mesa/drivers/dri/intel_winsys/intel_surface.c +++ b/src/mesa/drivers/dri/intel_winsys/intel_surface.c @@ -40,6 +40,8 @@ read_quad_f_swz(struct softpipe_surface *sps, GLint x, GLint y, GLuint j; assert(sps->surface.format == PIPE_FORMAT_U_A8_R8_G8_B8); + assert(x < sps->surface.width - 1); + assert(y < sps->surface.height - 1); memcpy(temp + 8, src, 8); memcpy(temp + 0, src + bytesPerRow, 8); |