summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSamuel Pitoiset <[email protected]>2017-06-02 17:52:48 +0200
committerSamuel Pitoiset <[email protected]>2017-06-06 11:47:19 +0200
commitaf9e537be3df89fef046c827fc83acbe2199107a (patch)
tree54dcb15cfe3f9949e87adeb1b6fa62f11ee62ea8
parent706e31fe5a228bd357a3d8e0495d3085a3953ccf (diff)
mesa: only emit _NEW_MULTISAMPLE when sample mask changes
We usually check that given parameters are different before updating the state. Signed-off-by: Samuel Pitoiset <[email protected]> Reviewed-by: Marek Olšák <[email protected]>
-rw-r--r--src/mesa/main/multisample.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mesa/main/multisample.c b/src/mesa/main/multisample.c
index f0e7a611805..16fe2b7ced6 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;
}