diff options
author | Brian <[email protected]> | 2007-09-26 17:03:11 -0600 |
---|---|---|
committer | Keith Whitwell <[email protected]> | 2008-09-23 16:59:56 -0700 |
commit | 03bafd1f9fa000abdb794b2ae344a68840c83201 (patch) | |
tree | bb590699fa0aedde46bdc22f7a891694b43c2561 /src/mesa/main/image.h | |
parent | a97226352fb8063d4d0084523312b4880dae5ac7 (diff) |
Added new _mesa_clip_copytexsubimage() function to do avoid clipping down in the drivers.
This should probably be pulled into main-line Mesa...
(cherry picked from commit 324ecadbfdf9b944e059832f146451e4151dcb21)
Diffstat (limited to 'src/mesa/main/image.h')
-rw-r--r-- | src/mesa/main/image.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mesa/main/image.h b/src/mesa/main/image.h index 465665b073a..38e1374c20c 100644 --- a/src/mesa/main/image.h +++ b/src/mesa/main/image.h @@ -270,6 +270,12 @@ _mesa_clip_readpixels(const GLcontext *ctx, struct gl_pixelstore_attrib *pack); extern GLboolean +_mesa_clip_copytexsubimage(const GLcontext *ctx, + GLint *destX, GLint *destY, + GLint *srcX, GLint *srcY, + GLsizei *width, GLsizei *height); + +extern GLboolean _mesa_clip_to_region(GLint xmin, GLint ymin, GLint xmax, GLint ymax, GLint *x, GLint *y, |