mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 11:28:05 +02:00
i965g: Fix use of out-of-scope variable.
This commit is contained in:
parent
1207482a03
commit
f56c9c2b19
1 changed files with 7 additions and 8 deletions
|
|
@ -130,15 +130,14 @@ brw_wm_sampler_update_default_colors(struct brw_context *brw)
|
|||
const struct brw_texture *tex = brw_texture(brw->curr.texture[i]);
|
||||
const struct brw_sampler *sampler = brw->curr.sampler[i];
|
||||
const float *bc;
|
||||
|
||||
float bordercolor[4] = {
|
||||
sampler->border_color[0],
|
||||
sampler->border_color[0],
|
||||
sampler->border_color[0],
|
||||
sampler->border_color[0]
|
||||
};
|
||||
|
||||
if (util_format_is_depth_or_stencil(tex->base.format)) {
|
||||
float bordercolor[4] = {
|
||||
sampler->border_color[0],
|
||||
sampler->border_color[0],
|
||||
sampler->border_color[0],
|
||||
sampler->border_color[0]
|
||||
};
|
||||
|
||||
bc = bordercolor;
|
||||
}
|
||||
else {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue