Set haveInstancedForkPhase to 0 before checking if a phase is instanced. Tessellation of tris produces invalid GLSL otherwise.
Merge branch 'master' of https://github.com/neilogd/HLSLCrossCompiler
Minor formatting error.