From 7206bfcfbc8ca0a26234f7a807abf3907999fa3f Mon Sep 17 00:00:00 2001 From: "alexey.lysiuk" Date: Fri, 26 Jan 2018 09:53:31 +0200 Subject: [PATCH] Made software fuzz shader compatible with supported OpenGL versions Use array constructors because initializer list is a core feature since OpenGL 4.2 --- wadsrc/static/shaders/glsl/fuzz_software.fp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/wadsrc/static/shaders/glsl/fuzz_software.fp b/wadsrc/static/shaders/glsl/fuzz_software.fp index cf905bb6e..b17b49b8a 100644 --- a/wadsrc/static/shaders/glsl/fuzz_software.fp +++ b/wadsrc/static/shaders/glsl/fuzz_software.fp @@ -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() {