Made software fuzz shader compatible with supported OpenGL versions

Use array constructors because initializer list is a core feature since OpenGL 4.2
This commit is contained in:
alexey.lysiuk 2018-01-26 09:53:31 +02:00
parent a46bbc81a0
commit 7206bfcfbc

View file

@ -6,8 +6,8 @@ uniform float timer;
#define FRACBITS 16
#define fixed_t int
int fuzz_random_x_offset[FUZZ_RANDOM_X_SIZE] =
{
int fuzz_random_x_offset[FUZZ_RANDOM_X_SIZE] = int[]
(
75, 76, 21, 91, 56, 33, 62, 99, 61, 79,
95, 54, 41, 18, 69, 43, 49, 59, 10, 84,
94, 17, 57, 46, 9, 39, 55, 34,100, 81,
@ -18,16 +18,16 @@ int fuzz_random_x_offset[FUZZ_RANDOM_X_SIZE] =
65, 15, 97, 20, 67, 74, 98, 85, 60, 68,
19, 26, 8, 87, 86, 64, 11, 37, 31, 47,
25, 5, 50, 51, 23, 2, 93, 70, 40, 45
};
);
int fuzzoffset[FUZZTABLE] =
{
int fuzzoffset[FUZZTABLE] = int[]
(
6, 11, 6, 11, 6, 6, 11, 6, 6, 11,
6, 6, 6, 11, 6, 6, 6, 11, 15, 18,
21, 6, 11, 15, 6, 6, 6, 6, 11, 6,
11, 6, 6, 11, 15, 6, 6, 11, 15, 18,
21, 6, 6, 6, 6, 11, 6, 6, 11, 6
};
);
vec4 ProcessTexel()
{