graphicsfuzz
graphicsfuzz copied to clipboard
Shader upgrading: position of main matters
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.