summaryrefslogtreecommitdiffstats
path: root/src/mesa
diff options
context:
space:
mode:
authorTimothy Arceri <[email protected]>2017-01-31 10:34:59 +1100
committerTimothy Arceri <[email protected]>2017-02-02 08:31:28 +1100
commit8d3d8a6d4e68b184b58786d6a768ff000bdd2b37 (patch)
treed434a7923a30b8c4c43bd1cb20b07b4321746905 /src/mesa
parentf3e2428a7a1e1fd00506a2c270c6a5d087b54700 (diff)
st/mesa: st_atom_shader.c C99 tidy up
Reviewed-by: Edward O'Callaghan <[email protected]> Reviewed-by: Nicolai Hähnle <[email protected]>
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/state_tracker/st_atom_shader.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/mesa/state_tracker/st_atom_shader.c b/src/mesa/state_tracker/st_atom_shader.c
index 8c10ac91c5b..f79afe0b1c2 100644
--- a/src/mesa/state_tracker/st_atom_shader.c
+++ b/src/mesa/state_tracker/st_atom_shader.c
@@ -132,13 +132,11 @@ update_fp( struct st_context *st )
_mesa_geometric_samples(st->ctx->DrawBuffer) > 1;
if (stfp->ati_fs) {
- unsigned u;
-
if (st->ctx->Fog.Enabled) {
key.fog = translate_fog_mode(st->ctx->Fog.Mode);
}
- for (u = 0; u < MAX_NUM_FRAGMENT_REGISTERS_ATI; u++) {
+ for (unsigned u = 0; u < MAX_NUM_FRAGMENT_REGISTERS_ATI; u++) {
key.texture_targets[u] = get_texture_target(st->ctx, u);
}
}