mesa: init more msaa fields
authorBrian Paul <brianp@vmware.com>
Thu, 27 Jul 2017 17:09:20 +0000 (11:09 -0600)
committerBrian Paul <brianp@vmware.com>
Thu, 3 Aug 2017 20:13:57 +0000 (14:13 -0600)
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>
src/mesa/main/multisample.c

index 78cf7f3332eb1f82c69ce7f3a2e2812f93ec845d..8ede94b7458f8edfce7fb0fb27c52de8243b00e8 100644 (file)
@@ -67,6 +67,8 @@ _mesa_init_multisample(struct gl_context *ctx)
    ctx->Multisample.SampleCoverage = GL_FALSE;
    ctx->Multisample.SampleCoverageValue = 1.0;
    ctx->Multisample.SampleCoverageInvert = GL_FALSE;
+   ctx->Multisample.SampleShading = GL_FALSE;
+   ctx->Multisample.MinSampleShadingValue = 0.0f;
 
    /* ARB_texture_multisample / GL3.2 additions */
    ctx->Multisample.SampleMask = GL_FALSE;