diff options
author | Brian Paul <[email protected]> | 2008-06-09 15:09:21 -0600 |
---|---|---|
committer | Keith Whitwell <[email protected]> | 2008-09-21 22:13:52 -0700 |
commit | c132e2b1db855b3c33d8b879c4a986011d631d43 (patch) | |
tree | 3b339f5b7772090ee5db949b33143704a967d06e /src/mesa/main/buffers.c | |
parent | e48defc98045f419e71ca13e4f45470b2336ecaf (diff) |
mesa: refactor: move multisample-related functions into new multisample.c file
Diffstat (limited to 'src/mesa/main/buffers.c')
-rw-r--r-- | src/mesa/main/buffers.c | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/src/mesa/main/buffers.c b/src/mesa/main/buffers.c index 11cd4097342..b23d2f612bf 100644 --- a/src/mesa/main/buffers.c +++ b/src/mesa/main/buffers.c @@ -501,41 +501,3 @@ _mesa_ReadBuffer(GLenum buffer) if (ctx->Driver.ReadBuffer) (*ctx->Driver.ReadBuffer)(ctx, buffer); } - - - -/* - * XXX move somewhere else someday? - */ -void GLAPIENTRY -_mesa_SampleCoverageARB(GLclampf value, GLboolean invert) -{ - GET_CURRENT_CONTEXT(ctx); - - if (!ctx->Extensions.ARB_multisample) { - _mesa_error(ctx, GL_INVALID_OPERATION, "glSampleCoverageARB"); - return; - } - - ASSERT_OUTSIDE_BEGIN_END_AND_FLUSH( ctx ); - ctx->Multisample.SampleCoverageValue = (GLfloat) CLAMP(value, 0.0, 1.0); - ctx->Multisample.SampleCoverageInvert = invert; - ctx->NewState |= _NEW_MULTISAMPLE; -} - - - -/** - * Initialize the context's multisample state. - * \param ctx the GL context. - */ -void -_mesa_init_multisample(GLcontext *ctx) -{ - ctx->Multisample.Enabled = GL_TRUE; - ctx->Multisample.SampleAlphaToCoverage = GL_FALSE; - ctx->Multisample.SampleAlphaToOne = GL_FALSE; - ctx->Multisample.SampleCoverage = GL_FALSE; - ctx->Multisample.SampleCoverageValue = 1.0; - ctx->Multisample.SampleCoverageInvert = GL_FALSE; -} |