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:
parent
b6f74dc880
commit
294f05591c
5 changed files with 13 additions and 13 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue