diff options
author | marha <marha@users.sourceforge.net> | 2011-11-21 08:06:12 +0100 |
---|---|---|
committer | marha <marha@users.sourceforge.net> | 2011-11-21 08:06:12 +0100 |
commit | 45710577f374972946a8eb37833a9c94e5a299bf (patch) | |
tree | 83862aa10e13033fe715c36f673f6e82c5434934 /mesalib/src/mesa/main/teximage.h | |
parent | 1037d56ca89d503cfd62830a90e934a2806ad804 (diff) | |
download | vcxsrv-45710577f374972946a8eb37833a9c94e5a299bf.tar.gz vcxsrv-45710577f374972946a8eb37833a9c94e5a299bf.tar.bz2 vcxsrv-45710577f374972946a8eb37833a9c94e5a299bf.zip |
xserver xkeyboard-config mesa git update 21 nov 2011
Diffstat (limited to 'mesalib/src/mesa/main/teximage.h')
-rw-r--r-- | mesalib/src/mesa/main/teximage.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/mesalib/src/mesa/main/teximage.h b/mesalib/src/mesa/main/teximage.h index fd315bea3..9cc7d5a54 100644 --- a/mesalib/src/mesa/main/teximage.h +++ b/mesalib/src/mesa/main/teximage.h @@ -36,6 +36,16 @@ #include "formats.h" +/** Is the given value one of the 6 cube faces? */ +static inline GLboolean +_mesa_is_cube_face(GLenum target) +{ + return (target >= GL_TEXTURE_CUBE_MAP_POSITIVE_X_ARB && + target <= GL_TEXTURE_CUBE_MAP_NEGATIVE_Z_ARB); +} + + + /** \name Internal functions */ /*@{*/ |