mesa: Add new scissor entry points for GL_ARB_viewport_array
authorCourtney Goeltzenleuchter <courtney@LunarG.com>
Tue, 12 Nov 2013 19:58:40 +0000 (12:58 -0700)
committerIan Romanick <ian.d.romanick@intel.com>
Mon, 20 Jan 2014 19:32:00 +0000 (11:32 -0800)
commit0a7baa68a8559d7889c0b68adfcda53f4575ee98
tree1de7c48b5a424a4dbcd695abe7d04339fcd64c89
parent917db0bc3dfdec1536018d96aab261e485b8d872
mesa: Add new scissor entry points for GL_ARB_viewport_array

v2 (idr): Use set_scissor_no_notify (and manually notify the driver)
instead of calling _mesa_set_scissori.  Refactory bodies of
_mesa_ScissorIndexed and _mesa_ScissorIndexedv into a shared function.
Perform parameter validation in the same order in all three functions.
Pull MaxViewports comparison fix (in _mesa_ScissorArrayv) from the next
patch to this patch.

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