summaryrefslogtreecommitdiff
path: root/src/mesa/main/teximage.h
diff options
context:
space:
mode:
authorChia-I Wu <olvaffe@gmail.com>2009-08-05 16:06:50 -0600
committerBrian Paul <brianp@vmware.com>2009-08-05 16:06:50 -0600
commit42b6b067ac68ac1309d0570613bea4a88f745559 (patch)
treea2729ca3297265348155cf0ec89e7661c933449c /src/mesa/main/teximage.h
parent1f713059934c2365a42aadfdca49213b36a7de90 (diff)
mesa/main: Add functions to clear and dirty texture objects.
This commit adds a function to clear a texture object such that there is no image data associated with it, and a function to dirty it so that it will be re-tested for completeness. Signed-off-by: Chia-I Wu <olvaffe@gmail.com>
Diffstat (limited to 'src/mesa/main/teximage.h')
-rw-r--r--src/mesa/main/teximage.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mesa/main/teximage.h b/src/mesa/main/teximage.h
index eb60a1fa8f..b0d7c1c3aa 100644
--- a/src/mesa/main/teximage.h
+++ b/src/mesa/main/teximage.h
@@ -73,6 +73,10 @@ _mesa_init_teximage_fields(GLcontext *ctx, GLenum target,
extern void
+_mesa_clear_texture_image(GLcontext *ctx, struct gl_texture_image *texImage);
+
+
+extern void
_mesa_set_tex_image(struct gl_texture_object *tObj,
GLenum target, GLint level,
struct gl_texture_image *texImage);