mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 13:10:10 +01:00
st/mesa: silence unused/uninitialized var warnings
Signed-off-by: Brian Paul <brianp@vmware.com>
This commit is contained in:
parent
c77c381fae
commit
ee3f75f538
1 changed files with 2 additions and 1 deletions
|
|
@ -181,10 +181,11 @@ st_nir_assign_uniform_locations(struct gl_program *prog,
|
|||
continue;
|
||||
|
||||
if (uniform->type->is_sampler()) {
|
||||
unsigned val;
|
||||
unsigned val = 0;
|
||||
bool found = shader_program->UniformHash->get(val, uniform->name);
|
||||
loc = shaderidx++;
|
||||
assert(found);
|
||||
(void) found; /* silence unused var warning */
|
||||
/* this ensure that nir_lower_samplers looks at the correct
|
||||
* shader_program->UniformStorage[location]:
|
||||
*/
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue