Move the computation of the viewport matrix into a new update_viewport_matrix()
authorBrian Paul <brian.paul@tungstengraphics.com>
Wed, 29 Mar 2006 03:59:34 +0000 (03:59 +0000)
committerBrian Paul <brian.paul@tungstengraphics.com>
Wed, 29 Mar 2006 03:59:34 +0000 (03:59 +0000)
commit519a2e7cb7b8f026bd5fe711cdf12a20df1c46ae
tree3a5ace19786c23d217f9ed64fdad20e2726f3e53
parentb687531f693548afc6d7cf7b5c6fb76926cc0dc9
Move the computation of the viewport matrix into a new update_viewport_matrix()
function since the matrix depends on the viewport params and the framebuffer's
depth buffer resolution.
Fixes some renderbuffer / depth range issues.
This simplifies the _mesa_set_viewport() and _mesa_DepthRange() functions too.
src/mesa/main/matrix.c
src/mesa/main/mtypes.h
src/mesa/main/state.c