glsl icon indicating copy to clipboard operation
glsl copied to clipboard

Replace non-standard #elseif preprocessor directive by #elif

Open AlexTMjugador opened this issue 3 years ago • 0 comments

According to The OpenGL Shading Language 4.5 specification, § 3.3, page 13, #elif is the standards-compliant and recognized way to write an "else if" preprocessor directive, instead of the #elseif that is currently parsed.

This non-conformance leads to standards-compliant shaders that use the affected preprocessor directive to not be able to be parsed, which is a bad thing.

Fix the situation by accepting #elif instead of #elseif, and rename identifiers appropriately. Broken shaders that use the non-conforming #elseif should be changed anyway.

AlexTMjugador avatar Jul 14 '21 11:07 AlexTMjugador