mesa: replace gl_context->Multisample._Enabled with _mesa_is_multisample_enabled.
This removes any dependency on driver validation of the number of framebuffer samples. Signed-off-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl> Reviewed-by: Edward O'Callaghan <eocallaghan@alterapraxis.com> Reviewed-by: Marek Olšák <marek.olsak@amd.com> Tested-by: Brian Paul <brianp@vmware.com>
This commit is contained in:

committed by
Brian Paul

parent
0bea0e7141
commit
f96309753b
@@ -74,7 +74,7 @@ update_fp( struct st_context *st )
|
||||
/* _NEW_MULTISAMPLE | _NEW_BUFFERS */
|
||||
key.persample_shading =
|
||||
st->force_persample_in_shader &&
|
||||
st->ctx->Multisample._Enabled &&
|
||||
_mesa_is_multisample_enabled(st->ctx) &&
|
||||
st->ctx->Multisample.SampleShading &&
|
||||
st->ctx->Multisample.MinSampleShadingValue *
|
||||
_mesa_geometric_samples(st->ctx->DrawBuffer) > 1;
|
||||
|
Reference in New Issue
Block a user