mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-04-21 12:00:41 +02:00
i965: Silence uninitialized variable warning.
Silences this GCC warning. brw_wm_fp.c: In function 'precalc_tex': brw_wm_fp.c:666: warning: 'tmpcoord.Index' may be used uninitialized in this function
This commit is contained in:
parent
eba2ad6de2
commit
03577f8250
1 changed files with 1 additions and 1 deletions
|
|
@ -663,7 +663,7 @@ static void precalc_tex( struct brw_wm_compile *c,
|
|||
const struct prog_instruction *inst )
|
||||
{
|
||||
struct prog_src_register coord;
|
||||
struct prog_dst_register tmpcoord;
|
||||
struct prog_dst_register tmpcoord = { 0 };
|
||||
const GLuint unit = c->fp->program.Base.SamplerUnits[inst->TexSrcUnit];
|
||||
|
||||
assert(unit < BRW_MAX_TEX_UNIT);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue