Output the precision for the return type in function declarations.
Tested with GLSL ES conformance suite (which doesn't test this) and
the WebGL conformance suite, which now contains tests to ensure that
these constructs compile correctly.
Chromium bug: http://crbug.com/86952
Review URL: http://codereview.appspot.com/4897045
git-svn-id: https://angleproject.googlecode.com/svn/trunk@731 736b8ea6-26fd-11df-bfd4-992fa37f6226
diff --git a/src/compiler/OutputGLSLBase.cpp b/src/compiler/OutputGLSLBase.cpp
index a0feb07..eccc54b 100644
--- a/src/compiler/OutputGLSLBase.cpp
+++ b/src/compiler/OutputGLSLBase.cpp
@@ -457,8 +457,8 @@
case EOpPrototype: {
// Function declaration.
ASSERT(visit == PreVisit);
- TString returnType = getTypeName(node->getType());
- out << returnType << " " << node->getName();
+ writeVariableType(node->getType());
+ out << " " << node->getName();
out << "(";
writeFunctionParameters(node->getSequence());