mesa: helper function for scissor box of gl_framebuffer
authorKevin Rogovin <kevin.rogovin@intel.com>
Wed, 17 Jun 2015 10:29:54 +0000 (13:29 +0300)
committerMartin Peres <martin.peres@linux.intel.com>
Wed, 17 Jun 2015 11:39:03 +0000 (14:39 +0300)
commit51f4b51151cb08988b5de466f3c2348876784cc5
treeb1626109ef5b7a863a437a7d0eda37361844fbe1
parent74987977a36a7111281e8fb53568dc05dbd3a8b4
mesa: helper function for scissor box of gl_framebuffer

Add helper convenience function that intersects the scissor values
against a passed bounding box. In addition, to avoid replicated code,
make the function _mesa_scissor_bounding_box() use this new function.

Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Signed-off-by: Kevin Rogovin <kevin.rogovin@intel.com>
src/mesa/main/framebuffer.c
src/mesa/main/framebuffer.h