mesa: refactor: move multisample-related functions into new multisample.c file
This commit is contained in:

committed by
Keith Whitwell

parent
e48defc980
commit
c132e2b1db
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user