mesa: only flush vertices when the viewport is different
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Thu, 22 Jun 2017 13:03:20 +0000 (15:03 +0200)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Sat, 24 Jun 2017 14:47:43 +0000 (16:47 +0200)
commitcb577e379e20d70d62821c0ca2f1cb77c7b6790e
treefb51c90320eefbdc7d3be77dd2b209ea5757d256
parent4178cea06d6976f25c4a84e0694f7cde4d23118f
mesa: only flush vertices when the viewport is different

This prevents glViewport() and friends to always flush and
trigger _NEW_VIEWPORT.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
src/mesa/main/viewport.c