diff options
author | Brian <[email protected]> | 2007-10-30 10:23:58 -0600 |
---|---|---|
committer | Roland Scheidegger <[email protected]> | 2008-04-04 12:44:14 +0200 |
commit | cdbfae9bef6645160904b7ef32c26c4e38ca37df (patch) | |
tree | c6682222c4c02d1603dda447c1f726d568db6ba4 /progs/tests | |
parent | 102f2ef4fc2d45c51926add6bdf51ef6fcb43b35 (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 |