mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-28 01:18:15 +02:00
v2: fix 025 test. Add three more tests (Ian Romanick) Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
23 lines
442 B
GLSL
23 lines
442 B
GLSL
#version 130
|
|
|
|
void main()
|
|
{
|
|
int undefinedIndex;
|
|
int undefinedIndex2;
|
|
int definedIndex = 2;
|
|
int definedIndex2 = 2;
|
|
float array[4];
|
|
float fooPos;
|
|
int fooLength;
|
|
|
|
fooPos = array[undefinedIndex];
|
|
fooPos = array[definedIndex];
|
|
|
|
fooPos = array[definedIndex+definedIndex2];
|
|
fooPos = array[undefinedIndex+undefinedIndex2];
|
|
array[0] = 10.0;
|
|
fooPos = array[definedIndex];
|
|
|
|
array[undefinedIndex2] = array[undefinedIndex];
|
|
}
|
|
|