summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/texobj.h
diff options
context:
space:
mode:
authorIan Romanick <ian.d.romanick@intel.com>2012-08-13 13:14:25 -0700
committerIan Romanick <ian.d.romanick@intel.com>2012-08-14 14:39:33 -0700
commit07e12c49175e0bf23dbd8bdc3afd7aa79ccc7140 (patch)
tree2f829ad01711cdd5d3adb5366d285af57c70ab7e /src/mesa/main/texobj.h
parentf241ffd48c2063557461f5b7bb2dea0b744b8bef (diff)
downloadexternal_mesa3d-07e12c49175e0bf23dbd8bdc3afd7aa79ccc7140.zip
external_mesa3d-07e12c49175e0bf23dbd8bdc3afd7aa79ccc7140.tar.gz
external_mesa3d-07e12c49175e0bf23dbd8bdc3afd7aa79ccc7140.tar.bz2
mesa: Add skeleton implementations of glInvalidateTex{Sub,}Image
These are part of GL_ARB_invalidate_subdata (but not OpenGL ES 3.0). v2: Add comment explaining why minimum dimensions are set to 1 for some texture targets. Add default case to switch statement to silence compiler warnings and detect new texture targets. Both changes suggested by Brian. Also use _mesa_is_desktop_gl as suggested by Ken. Signed-off-by: Ian Romanick <ian.d.romanick@intel.com> Reviewed-by: Brian Paul <brianp@vmware.com> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Diffstat (limited to 'src/mesa/main/texobj.h')
-rw-r--r--src/mesa/main/texobj.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/mesa/main/texobj.h b/src/mesa/main/texobj.h
index 23e1ade..93e0d77 100644
--- a/src/mesa/main/texobj.h
+++ b/src/mesa/main/texobj.h
@@ -152,6 +152,14 @@ _mesa_AreTexturesResident( GLsizei n, const GLuint *textures,
extern GLboolean GLAPIENTRY
_mesa_IsTexture( GLuint texture );
+extern void GLAPIENTRY
+_mesa_InvalidateTexSubImage(GLuint texture, GLint level, GLint xoffset,
+ GLint yoffset, GLint zoffset, GLsizei width,
+ GLsizei height, GLsizei depth);
+
+extern void GLAPIENTRY
+_mesa_InvalidateTexImage(GLuint texture, GLint level);
+
/*@}*/