diff options
author | Marek Olšák <[email protected]> | 2017-04-30 00:42:16 +0200 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2017-05-08 18:32:00 +0200 |
commit | d1ee2b37ffb5c4f8365592d7c548ccf50bd0f10a (patch) | |
tree | 37dbb26ffeac3c3de85ec49a5c9694359a3342d3 /src/mesa/state_tracker/st_atom_viewport.c | |
parent | cb2ac69628a89a601ff682fdc3bc3c8ee5e306b3 (diff) |
st/mesa: remove struct st_tracked_state
It contains only one member: the update function. Let's use the update
function directly.
Tested-by: Edmondo Tommasina <[email protected]>
Reviewed-by: Brian Paul <[email protected]>
Reviewed-by: Nicolai Hähnle <[email protected]>
Diffstat (limited to 'src/mesa/state_tracker/st_atom_viewport.c')
-rw-r--r-- | src/mesa/state_tracker/st_atom_viewport.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/src/mesa/state_tracker/st_atom_viewport.c b/src/mesa/state_tracker/st_atom_viewport.c index 8f750a9ff61..900f0617caa 100644 --- a/src/mesa/state_tracker/st_atom_viewport.c +++ b/src/mesa/state_tracker/st_atom_viewport.c @@ -39,8 +39,8 @@ * - depthrange * - window pos/size or FBO size */ -static void -update_viewport( struct st_context *st ) +void +st_update_viewport( struct st_context *st ) { struct gl_context *ctx = st->ctx; GLfloat yScale, yBias; @@ -80,8 +80,3 @@ update_viewport( struct st_context *st ) if (ctx->Const.MaxViewports > 1) st->pipe->set_viewport_states(st->pipe, 1, ctx->Const.MaxViewports - 1, &st->state.viewport[1]); } - - -const struct st_tracked_state st_update_viewport = { - update_viewport /* update */ -}; |