st/mesa: st_atom_shader.c C99 tidy up

Reviewed-by: Edward O'Callaghan <funfunctor@folklore1984.net>
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
This commit is contained in:
Timothy Arceri 2017-01-31 10:34:59 +11:00 committed by Timothy Arceri
parent f3e2428a7a
commit 8d3d8a6d4e

View file

@ -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);
}
}