graphicsfuzz icon indicating copy to clipboard operation
graphicsfuzz copied to clipboard

Shader upgrading: position of main matters

Open jarisiru opened this issue 6 years ago • 0 comments

When moving non-const initializers from global scope to main, it changes the position of these calls in the source files. In some files, main() is declared before the globals, which means that main is trying to refer to something that is declared after it. Moving main() to the bottom of the shader should fix this.

jarisiru avatar Jan 22 '20 10:01 jarisiru