Skip to content
Commit 7882268c authored by Caio Oliveira's avatar Caio Oliveira Committed by Dylan Baker
Browse files

glsl/nir: Avoid overflow when setting max_uniform_location



Don't use the UNMAPPED_UNIFORM_LOC (-1) to set the unsigned
max_uniform_location.  Those unmapped uniforms don't have to be
accounted at this point.

Fixes: 7a9e5cdf ("nir/linker: Add gl_nir_link_uniforms()")
Reviewed-by: default avatarAlejandro Piñeiro <apinheiro@igalia.com>
(cherry picked from commit 4f33f96c)
parent 4eabbc04
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment