diff options
author | Anuj Phogat <[email protected]> | 2014-09-18 16:30:31 -0700 |
---|---|---|
committer | Anuj Phogat <[email protected]> | 2014-10-22 16:13:37 -0700 |
commit | 6f0089e92e9a3b096b978bb09a87db6a38acb7b2 (patch) | |
tree | 32e9cae1c76ec629753b54d898f2544460324c02 /src/hgl | |
parent | 8ec40adf7eaaf4a107ee76497d69d1479580f711 (diff) |
glsl: Fix crash due to negative array index
Currently Mesa crashes with a shader like this:
[fragmnet shader]
float[5] array;
int idx = -2;
void main()
{
gl_FragColor = vec4(0.0, 1.0, 0.0, array[idx]);
}
Cc: <[email protected]>
Signed-off-by: Anuj Phogat <[email protected]>
Reviewed-by: Chris Forbes <[email protected]>
Diffstat (limited to 'src/hgl')
0 files changed, 0 insertions, 0 deletions