mesa: Set all scissor rects
authorIan Romanick <ian.d.romanick@intel.com>
Wed, 6 Nov 2013 17:11:08 +0000 (09:11 -0800)
committerIan Romanick <ian.d.romanick@intel.com>
Mon, 20 Jan 2014 19:31:59 +0000 (11:31 -0800)
commit6d3b1dc150e4bdd462b5320a072e509777ad386a
tree8295de61b3cf72ec85c23385b8ab7247ddcacd64
parent454cec429969b7f09eeff17a5d1e7584d36f017f
mesa: Set all scissor rects

In _mesa_Scissor, make sure that ctx->Driver.Scissor is only called once
instead of once per scissor rectangle.

v2: Use MAX_VIEWPORTS instead of ctx->Const.MaxViewports because the
driver may not set ctx->Const.MaxViewports yet.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/main/context.c
src/mesa/main/scissor.c