summaryrefslogtreecommitdiffstats
path: root/docs/MESA_swap_control.spec
diff options
context:
space:
mode:
authorFrank Henigman <[email protected]>2012-12-14 15:52:17 -0500
committerStéphane Marchesin <[email protected]>2012-12-21 11:23:48 -0800
commit46e3aeb07702f57d389fbfcade9d4ef66218dc53 (patch)
treec5fa084730adbf302287e6e07e132b512d4f209f /docs/MESA_swap_control.spec
parent74f07319533d39a509ddc3159a51cfe89cd47225 (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 'docs/MESA_swap_control.spec')
0 files changed, 0 insertions, 0 deletions