summaryrefslogtreecommitdiff
path: root/src/mesa/main/image.h
diff options
context:
space:
mode:
authorBrian <brian.paul@tungstengraphics.com>2007-09-26 17:03:11 -0600
committerBrian <brian.paul@tungstengraphics.com>2007-09-26 17:03:11 -0600
commit324ecadbfdf9b944e059832f146451e4151dcb21 (patch)
treed10dd6af860f06059be726d8d742cca63761f308 /src/mesa/main/image.h
parentbad4e10af746ce16b730a3e7a4e2ff53ecb6d0f6 (diff)
Added new _mesa_clip_copytexsubimage() function to do avoid clipping down in the drivers.
This should probably be pulled into main-line Mesa...
Diffstat (limited to 'src/mesa/main/image.h')
-rw-r--r--src/mesa/main/image.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mesa/main/image.h b/src/mesa/main/image.h
index 2a16989fa7..c379d5fa7d 100644
--- a/src/mesa/main/image.h
+++ b/src/mesa/main/image.h
@@ -225,6 +225,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,