diff options
author | Brian Paul <[email protected]> | 2001-05-29 15:23:48 +0000 |
---|---|---|
committer | Brian Paul <[email protected]> | 2001-05-29 15:23:48 +0000 |
commit | 736fcbec4732830e7976fb5eb309b13e03be132c (patch) | |
tree | 746d1eb07d2e140c2a6d7964767403f131e86080 /src/mesa/main/buffers.c | |
parent | 5ff1c613ea25be455eda9037a4955d47669a8c79 (diff) |
infrastructure for GL_ARB_multisample
Diffstat (limited to 'src/mesa/main/buffers.c')
-rw-r--r-- | src/mesa/main/buffers.c | 23 |
1 files changed, 22 insertions, 1 deletions
diff --git a/src/mesa/main/buffers.c b/src/mesa/main/buffers.c index c2737ad5f05..82afb401a82 100644 --- a/src/mesa/main/buffers.c +++ b/src/mesa/main/buffers.c @@ -1,4 +1,4 @@ -/* $Id: buffers.c,v 1.28 2001/03/12 00:48:37 gareth Exp $ */ +/* $Id: buffers.c,v 1.29 2001/05/29 15:23:48 brianp Exp $ */ /* * Mesa 3-D graphics library @@ -370,3 +370,24 @@ _mesa_ResizeBuffersMESA( void ) ctx->Driver.ResizeBuffersMESA( ctx ); } + + +/* + * XXX move somewhere else someday? + */ +void +_mesa_SampleCoverageARB(GLclampf value, GLboolean invert) +{ + GLcontext *ctx = _mesa_get_current_context(); + + if (!ctx->Extensions.ARB_multisample) { + _mesa_error(ctx, GL_INVALID_OPERATION, "glSampleCoverageARB"); + return; + } + + ASSERT_OUTSIDE_BEGIN_END_AND_FLUSH( ctx ); + ctx->Multisample.SampleCoverageValue = CLAMP(value, 0.0, 1.0); + ctx->Multisample.SampleCoverageInvert = invert; + ctx->NewState |= _NEW_MULTISAMPLE; +} + |