diff options
author | Brian Paul <brianp@vmware.com> | 2009-08-31 19:26:00 -0600 |
---|---|---|
committer | Brian Paul <brianp@vmware.com> | 2009-08-31 19:34:47 -0600 |
commit | 10d81f466794c61c11225c94b2125bf2dd23748e (patch) | |
tree | f1aa6d7b30a476203594c85fcf96f4a39ebb504f /src/mesa/main/image.c | |
parent | d762b5459be63b46b280a11847c9b1f2a7015e52 (diff) |
mesa: added _mesa_is_stencil_format()
Diffstat (limited to 'src/mesa/main/image.c')
-rw-r--r-- | src/mesa/main/image.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/mesa/main/image.c b/src/mesa/main/image.c index d77c593ac7..006a55116b 100644 --- a/src/mesa/main/image.c +++ b/src/mesa/main/image.c @@ -689,6 +689,22 @@ _mesa_is_depth_format(GLenum format) /** + * Test if the given image format is a stencil format. + */ +GLboolean +_mesa_is_stencil_format(GLenum format) +{ + switch (format) { + case GL_STENCIL_INDEX: + case GL_DEPTH_STENCIL: + return GL_TRUE; + default: + return GL_FALSE; + } +} + + +/** * Test if the given image format is a YCbCr format. */ GLboolean |