Fix array initialization on Intel. Thankfully NVIDIA also accepts this syntax. If AMD expects something else I'll be pissed.

This commit is contained in:
Marisa the Magician 2019-07-02 11:17:16 +02:00
commit 294f05591c
5 changed files with 13 additions and 13 deletions

View file

@ -6,14 +6,14 @@ void main()
{
vec2 coord = TexCoord;
vec4 res = texture(InputTexture,coord);
vec2 ofs[8] =
{
vec2 ofs[8] = vec2[]
(
vec2(1.0,1.0), vec2(-1.0,-1.0),
vec2(-1.0,1.0), vec2(1.0,-1.0),
vec2(1.41,1.41), vec2(-1.41,-1.41),
vec2(-1.41,1.41), vec2(1.41,-1.41)
};
);
vec2 bresl = textureSize(InputTexture,0);
vec2 bof = (1.0/bresl)*bsssharpradius;
vec4 tcol = res;