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_clip.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_clip.c')
-rw-r--r-- | src/mesa/state_tracker/st_atom_clip.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/mesa/state_tracker/st_atom_clip.c b/src/mesa/state_tracker/st_atom_clip.c index 0df7985c09d..0db3a5d5431 100644 --- a/src/mesa/state_tracker/st_atom_clip.c +++ b/src/mesa/state_tracker/st_atom_clip.c @@ -41,7 +41,7 @@ /* Second state atom for user clip planes: */ -static void update_clip( struct st_context *st ) +void st_update_clip( struct st_context *st ) { struct pipe_clip_state clip; const struct gl_context *ctx = st->ctx; @@ -66,8 +66,3 @@ static void update_clip( struct st_context *st ) st->pipe->set_clip_state(st->pipe, &clip); } } - - -const struct st_tracked_state st_update_clip = { - update_clip /* update */ -}; |