mesa: Initialize all the viewports
authorIan Romanick <ian.d.romanick@intel.com>
Wed, 6 Nov 2013 06:36:38 +0000 (22:36 -0800)
committerIan Romanick <ian.d.romanick@intel.com>
Mon, 20 Jan 2014 19:31:59 +0000 (11:31 -0800)
commit9de863603d8092243df502365a75d65982223f0e
tree0e49c768abe940e76494bd19ad6c84dade3fbb7a
parentf6d7cd4a11e70b816733cff681dde7d03588d1c8
mesa: Initialize all the viewports

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

v3: Handle all viewport entries in update_viewport_matrix and
_mesa_copy_context too.  This was previously in an earlier patch.
Having the code in the earlier patch could cause _mesa_copy_context to
access a matrix that hadn't been constructed.

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