diff options
author | Frank Henigman <[email protected]> | 2012-12-14 15:52:17 -0500 |
---|---|---|
committer | Stéphane Marchesin <[email protected]> | 2012-12-21 11:23:48 -0800 |
commit | 46e3aeb07702f57d389fbfcade9d4ef66218dc53 (patch) | |
tree | c5fa084730adbf302287e6e07e132b512d4f209f /src/gallium/tests | |
parent | 74f07319533d39a509ddc3159a51cfe89cd47225 (diff) |
mesa: add bounds checking for uniform array access
No piglit regressions and now passes glsl-uniform-out-of-bounds-2.
validate_uniform_parameters now checks that the array index is
valid. This means if an index is out of bounds, glGetUniform* now
fails with GL_INVALID_OPERATION, as it should.
_mesa_uniform and _mesa_uniform_matrix also call
validate_uniform_parameters so the bounds checks there became
redundant and were removed.
The test in glGetUniformLocation is modified to check array bounds
so it now returns GL_INVALID_INDEX (-1) if you ask for the location
of a non-existent array element, as it should.
Signed-off-by: Frank Henigman <[email protected]>
Reviewed-by: Stéphane Marchesin <[email protected]>
Diffstat (limited to 'src/gallium/tests')
0 files changed, 0 insertions, 0 deletions