diff options
author | Mathias Froehlich <Mathias.Froehlich@web.de> | 2015-03-29 18:57:46 +0200 |
---|---|---|
committer | Mathias Froehlich <Mathias.Froehlich@gmx.net> | 2015-04-05 08:01:47 +0200 |
commit | 107ae27e57dc2a1ddc6bbb7ea101c1c60794423f (patch) | |
tree | d6dcd260f55507336ec4b7f869251a51c9e1ba22 /src/mesa/main/state.c | |
parent | 29e6c7dbc5bacf4f2b741333ac56469a00164e65 (diff) | |
download | external_mesa3d-107ae27e57dc2a1ddc6bbb7ea101c1c60794423f.zip external_mesa3d-107ae27e57dc2a1ddc6bbb7ea101c1c60794423f.tar.gz external_mesa3d-107ae27e57dc2a1ddc6bbb7ea101c1c60794423f.tar.bz2 |
mesa: Remove the _WindowMap from gl_viewport_attrib.
The _WindowMap can be dropped from gl_viewport_attrib now.
Simplify gl_viewport_attrib handling where possible.
Reviewed-by: Brian Paul <brianp@vmware.com>
Signed-off-by: Mathias Froehlich <Mathias.Froehlich@web.de>
Diffstat (limited to 'src/mesa/main/state.c')
-rw-r--r-- | src/mesa/main/state.c | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/src/mesa/main/state.c b/src/mesa/main/state.c index dadfb3c..6dc14b2 100644 --- a/src/mesa/main/state.c +++ b/src/mesa/main/state.c @@ -269,28 +269,6 @@ update_program_constants(struct gl_context *ctx) -static void -update_viewport_matrix(struct gl_context *ctx) -{ - const GLfloat depthMax = ctx->DrawBuffer->_DepthMaxF; - unsigned i; - - assert(depthMax > 0); - - /* Compute scale and bias values. This is really driver-specific - * and should be maintained elsewhere if at all. - * NOTE: RasterPos uses this. - */ - for (i = 0; i < ctx->Const.MaxViewports; i++) { - double scale[3], translate[3]; - - _mesa_get_viewport_xform(ctx, i, scale, translate); - _math_matrix_viewport(&ctx->ViewportArray[i]._WindowMap, - scale, translate, depthMax); - } -} - - /** * Update the ctx->Polygon._FrontBit flag. */ @@ -407,9 +385,6 @@ _mesa_update_state_locked( struct gl_context *ctx ) if (new_state & _NEW_PIXEL) _mesa_update_pixel( ctx, new_state ); - if (new_state & (_NEW_BUFFERS | _NEW_VIEWPORT)) - update_viewport_matrix(ctx); - if (new_state & (_NEW_MULTISAMPLE | _NEW_BUFFERS)) update_multisample( ctx ); |