diff options
author | marha <marha@users.sourceforge.net> | 2011-11-21 08:08:22 +0100 |
---|---|---|
committer | marha <marha@users.sourceforge.net> | 2011-11-21 08:08:22 +0100 |
commit | a8a12d4c8be177f63cae7dc96c2b52f09e228a76 (patch) | |
tree | 72ea4c93cc3337810a32ccc0fb34b3bd96d933e9 /mesalib/src/mesa/main/teximage.h | |
parent | e3710c8691dceaccf51bb80e5a1f7d1830758f7e (diff) | |
parent | 45710577f374972946a8eb37833a9c94e5a299bf (diff) | |
download | vcxsrv-a8a12d4c8be177f63cae7dc96c2b52f09e228a76.tar.gz vcxsrv-a8a12d4c8be177f63cae7dc96c2b52f09e228a76.tar.bz2 vcxsrv-a8a12d4c8be177f63cae7dc96c2b52f09e228a76.zip |
Merge remote-tracking branch 'origin/released'
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 */ /*@{*/ |