Hi,
I've verified that on Nexus 5, using structs inside a uniform block, like this:
struct DirectionalLight{vec4 diffuse;vec4 specular;vec4 direction;};layout (std140) uniform LightBlock{DirectionalLight dLight0;DirectionalLight dLight1;}
causes glLinkProgram to hang.
Doing either of the following fixes the problem:
1. changing from a uniform block to just standard uniforms
2. removing the structs from the uniform block and defining the vec4s in the block directly
It appears that the compiler does not like structs inside uniform blocks.
Are you able to confirm if this is a known issue on Nexus 5?
Doing either of the following fixes the problem:
1. changing from a uniform block to just standard uniforms
2. removing the structs from the uniform block and defining the vec4s in the block directly
It appears that the compiler does not like structs inside uniform blocks.
Are you able to confirm if this is a known issue on Nexus 5?