We usually check that given parameters are different before updating the state.
Signed-off-by: Samuel Pitoiset <samuel.pitoi...@gmail.com> --- src/mesa/main/multisample.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/mesa/main/multisample.c b/src/mesa/main/multisample.c index f0e7a61180..16fe2b7ced 100644 --- a/src/mesa/main/multisample.c +++ b/src/mesa/main/multisample.c @@ -119,6 +119,9 @@ _mesa_SampleMaski(GLuint index, GLbitfield mask) return; } + if (ctx->Multisample.SampleMaskValue == mask) + return; + FLUSH_VERTICES(ctx, _NEW_MULTISAMPLE); ctx->Multisample.SampleMaskValue = mask; } -- 2.13.0 _______________________________________________ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-dev