From a8ef69cc0c9e5281e6b745dd4a2be75f629eb8b8 Mon Sep 17 00:00:00 2001 From: marha Date: Fri, 20 Jan 2012 09:35:29 +0100 Subject: xserver xkeyboard-config git update 20 jan 2012 --- mesalib/src/mesa/main/teximage.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'mesalib/src/mesa/main/teximage.h') diff --git a/mesalib/src/mesa/main/teximage.h b/mesalib/src/mesa/main/teximage.h index 12af0e6d6..e2bdaca01 100644 --- a/mesalib/src/mesa/main/teximage.h +++ b/mesalib/src/mesa/main/teximage.h @@ -44,7 +44,14 @@ _mesa_is_cube_face(GLenum target) target <= GL_TEXTURE_CUBE_MAP_NEGATIVE_Z_ARB); } - +/** Is any of the dimensions of given texture equal to zero? */ +static inline GLboolean +_mesa_is_zero_size_texture(const struct gl_texture_image *texImage) +{ + return (texImage->Width == 0 || + texImage->Height == 0 || + texImage->Depth == 0); +} /** \name Internal functions */ /*@{*/ -- cgit v1.2.3