You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Redeclaring blocks needs GL_ARB_separate_shader_objects or #version 410. When redeclaring gl_ClipDistance[] with a specific array size you have to use: out float gl_ClipDistance[6];
The wiki page does not state a specific version requirement. The reference page and the built-ins wiki page don't either. The GLSL 3.3 language specs say redeclaring built in variables it forbidden unless specifically allowed for certain variables, so that probably covers it, but is easy to miss. Some implementations seem to complain, some don't.
See also this issue.
The text was updated successfully, but these errors were encountered:
Redeclaring blocks needs GL_ARB_separate_shader_objects or #version 410. When redeclaring gl_ClipDistance[] with a specific array size you have to use:
out float gl_ClipDistance[6];
The wiki page does not state a specific version requirement. The reference page and the built-ins wiki page don't either. The GLSL 3.3 language specs say redeclaring built in variables it forbidden unless specifically allowed for certain variables, so that probably covers it, but is easy to miss. Some implementations seem to complain, some don't.
See also this issue.
The text was updated successfully, but these errors were encountered: