blob: 43d7f4c03998249c836754f1fe773301d1f8bf4c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
#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];
}
|