mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-22 20:00:10 +01:00
iris: move variable to the scope where it is being used
iris_upload_border_color is passed a pointer which points to variable that is introduced in a different scope. CID: 1444296 Signed-off-by: Tapani Pälli <tapani.palli@intel.com> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
This commit is contained in:
parent
3cea9f981a
commit
41f76dd513
1 changed files with 1 additions and 1 deletions
|
|
@ -1532,8 +1532,8 @@ iris_upload_sampler_states(struct iris_context *ice, gl_shader_stage stage)
|
|||
* back into A.
|
||||
*/
|
||||
union pipe_color_union *color = &state->border_color;
|
||||
union pipe_color_union tmp;
|
||||
if (tex) {
|
||||
union pipe_color_union tmp;
|
||||
enum pipe_format internal_format = tex->res->internal_format;
|
||||
|
||||
if (util_format_is_alpha(internal_format)) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue