glsl: Fix gl_shader_program::UniformLocationBaseScale assert.
authorVinson Lee <vlee@freedesktop.org>
Tue, 25 Jun 2013 05:50:30 +0000 (22:50 -0700)
committerVinson Lee <vlee@freedesktop.org>
Wed, 26 Jun 2013 01:45:01 +0000 (18:45 -0700)
commit61bfed2d0998065bdb20f3f67e1591f8d5005ba6
treeb906ff16d3e30d70a0cc41736c08c0d701a91892
parent0b994961ff58654f330c51caacf9698f7dafd6b6
glsl: Fix gl_shader_program::UniformLocationBaseScale assert.

commit 26d86d26f9f972b19c7040bdb1b1daf48537ef3e added
gl_shader_program::UniformLocationBaseScale. According to the code
comments in that commit, UniformLocationBaseScale "must be >=1".

UniformLocationBaseScale is of type unsigned. Coverity reported a "Macro
compares unsigned to 0" defect as well.

Signed-off-by: Vinson Lee <vlee@freedesktop.org>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
src/mesa/main/uniforms.h