st/atifs: remove unrequired initialisation of gl_program fields
As far as I can tell these fields are only used to query arb program info and are not related to ATI_fragment_shader. Reviewed-by: Marek Olšák <marek.olsak@amd.com> Reviewed-by: Miklós Máté <mtmkls@gmail.com>
This commit is contained in:
parent
8fe6abd964
commit
b99fb1a04d
|
@ -605,10 +605,6 @@ st_init_atifs_prog(struct gl_context *ctx, struct gl_program *prog)
|
||||||
}
|
}
|
||||||
_mesa_add_state_reference(prog->Parameters, fog_params_state);
|
_mesa_add_state_reference(prog->Parameters, fog_params_state);
|
||||||
_mesa_add_state_reference(prog->Parameters, fog_color);
|
_mesa_add_state_reference(prog->Parameters, fog_color);
|
||||||
|
|
||||||
prog->arb.NumInstructions = 0;
|
|
||||||
prog->arb.NumTemporaries = MAX_NUM_FRAGMENT_REGISTERS_ATI + 3; /* 3 input temps for arith ops */
|
|
||||||
prog->arb.NumParameters = MAX_NUM_FRAGMENT_CONSTANTS_ATI + 2; /* 2 state variables for fog */
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue