mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-21 11:30:11 +01:00
mesa: init more msaa fields
The default values for GL_SAMPLE_SHADING and GL_MIN_SAMPLE_SHADING_VALUE are missing from the state tables in the GL spec, but they're supposed to be GL_FALSE and 0.0, per the GL_ARB_sample_shading spec. Add code for that, just to be explicit. Reviewed-by: Roland Scheidegger <sroland@vmware.com> Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
This commit is contained in:
parent
f0da70a964
commit
6c46caedab
1 changed files with 2 additions and 0 deletions
|
|
@ -67,6 +67,8 @@ _mesa_init_multisample(struct gl_context *ctx)
|
||||||
ctx->Multisample.SampleCoverage = GL_FALSE;
|
ctx->Multisample.SampleCoverage = GL_FALSE;
|
||||||
ctx->Multisample.SampleCoverageValue = 1.0;
|
ctx->Multisample.SampleCoverageValue = 1.0;
|
||||||
ctx->Multisample.SampleCoverageInvert = GL_FALSE;
|
ctx->Multisample.SampleCoverageInvert = GL_FALSE;
|
||||||
|
ctx->Multisample.SampleShading = GL_FALSE;
|
||||||
|
ctx->Multisample.MinSampleShadingValue = 0.0f;
|
||||||
|
|
||||||
/* ARB_texture_multisample / GL3.2 additions */
|
/* ARB_texture_multisample / GL3.2 additions */
|
||||||
ctx->Multisample.SampleMask = GL_FALSE;
|
ctx->Multisample.SampleMask = GL_FALSE;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue