Emit "#version 120" if the shader has array as out parameter.
Review URL: https://codereview.appspot.com/6494082
git-svn-id: https://angleproject.googlecode.com/svn/trunk@1273 736b8ea6-26fd-11df-bfd4-992fa37f6226
diff --git a/src/compiler/VersionGLSL.h b/src/compiler/VersionGLSL.h
index 376fcb8..1c1cb1a 100644
--- a/src/compiler/VersionGLSL.h
+++ b/src/compiler/VersionGLSL.h
@@ -22,14 +22,18 @@
// - c++ style name hiding rules.
// - built-in variable gl_PointCoord for fragment shaders.
// - matrix constructors taking matrix as argument.
+// - array as "out" function parameters
//
class TVersionGLSL : public TIntermTraverser {
public:
TVersionGLSL(ShShaderType type);
- // Returns 120 if "invariant" keyword, "gl_PointCoord", or
- // matrix/matrix constructors are used in the shader. Else 110 is
- // returned.
+ // Returns 120 if the following is used the shader:
+ // - "invariant",
+ // - "gl_PointCoord",
+ // - matrix/matrix constructors
+ // - array "out" parameters
+ // Else 110 is returned.
int getVersion() { return mVersion; }
virtual void visitSymbol(TIntermSymbol*);