diff options
author | Brian <[email protected]> | 2007-10-30 10:23:58 -0600 |
---|---|---|
committer | Brian <[email protected]> | 2007-10-30 10:23:58 -0600 |
commit | 8b8a970593cd13cd4d0fc5c27e3fd7182f631a0e (patch) | |
tree | 0b232f791f7831e58ec98192aac5ddffbb7f0cd0 /progs/tests | |
parent | f70ca96ba9eaeb380861fb657fca99f129b7f232 (diff) |
test glStencilFuncSeparateATI()
Diffstat (limited to 'progs/tests')
-rw-r--r-- | progs/tests/getprocaddress.c | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/progs/tests/getprocaddress.c b/progs/tests/getprocaddress.c index 8b000d234a3..ca66025d2dc 100644 --- a/progs/tests/getprocaddress.c +++ b/progs/tests/getprocaddress.c @@ -269,6 +269,32 @@ test_VertexAttrib4dvNV(generic_func func) static GLboolean +test_StencilFuncSeparateATI(generic_func func) +{ +#ifdef GL_ATI_separate_stencil + PFNGLSTENCILFUNCSEPARATEATIPROC stencilFuncSeparateATI = (PFNGLSTENCILFUNCSEPARATEATIPROC) func; + GLint frontFunc, backFunc; + GLint frontRef, backRef; + GLint frontMask, backMask; + (*stencilFuncSeparateATI)(GL_LESS, GL_GREATER, 2, 0xa); + glGetIntegerv(GL_STENCIL_FUNC, &frontFunc); + glGetIntegerv(GL_STENCIL_BACK_FUNC, &backFunc); + glGetIntegerv(GL_STENCIL_REF, &frontRef); + glGetIntegerv(GL_STENCIL_BACK_REF, &backRef); + glGetIntegerv(GL_STENCIL_VALUE_MASK, &frontMask); + glGetIntegerv(GL_STENCIL_BACK_VALUE_MASK, &backMask); + if (frontFunc != GL_LESS || + backFunc != GL_GREATER || + frontRef != 2 || + backRef != 2 || + frontMask != 0xa || + backMask != 0xa) + return GL_FALSE; +#endif + return GL_TRUE; +} + +static GLboolean test_StencilFuncSeparate(generic_func func) { #ifdef GL_VERSION_2_0 |