Make the default version be 100.
authorJohn Kessenich <cepheus@frii.com>
Fri, 8 Feb 2013 18:56:56 +0000 (18:56 +0000)
committerJohn Kessenich <cepheus@frii.com>
Fri, 8 Feb 2013 18:56:56 +0000 (18:56 +0000)
git-svn-id: https://cvs.khronos.org/svn/repos/ogl/trunk/ecosystem/public/sdk/tools/glslang@20509 e7fa87d3-cd2b-0410-9028-fcbf551c1848

StandAlone/StandAlone.cpp
Test/cppIndent.vert
Test/cppNest.vert
Test/cppSimple.vert
Test/sample.frag
Test/sample.vert
glslang/MachineIndependent/ParseHelper.cpp

index 3a5fe55..921fddd 100644 (file)
@@ -250,7 +250,7 @@ bool CompileFile(char *fileName, ShHandle compiler, int debugOptions, const TBui
     for (int i = 0; i < 1000; ++i) {
         for (int j = 0; j < 100; ++j)
 #endif
-            ret = ShCompile(compiler, data, OutputMultipleStrings, EShOptNone, resources, debugOptions);
+            ret = ShCompile(compiler, data, OutputMultipleStrings, EShOptNone, resources, debugOptions, 100);
 #ifdef MEASURE_MEMORY
 
         GetProcessMemoryInfo(GetCurrentProcess(), &counters, sizeof(counters));
index a468e77..078776a 100644 (file)
@@ -1,3 +1,5 @@
+#version 110
+
 #define ON
 
 float sum = 0.0;
index 0bc97dd..41c5a6a 100644 (file)
@@ -1,3 +1,5 @@
+#version 110
+
 #define ON
 
 float sum = 0.0;
index 64eb2b8..07c5628 100644 (file)
@@ -1,3 +1,5 @@
+#version 110
+
 #define ON
 
 float sum = 0.0;
index af3a626..540b4a7 100644 (file)
@@ -31,6 +31,7 @@
 //ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\r
 //POSSIBILITY OF SUCH DAMAGE.\r
 //\r
+#version 110\r
 \r
 varying vec3 color;\r
 \r
index 0ecaf2c..8cda91f 100644 (file)
@@ -31,6 +31,7 @@
 //ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\r
 //POSSIBILITY OF SUCH DAMAGE.\r
 //\r
+#version 110\r
 \r
 varying vec3 color;\r
 \r
index 92d2e54..c968b75 100644 (file)
@@ -77,7 +77,10 @@ void TParseContext::setVersion(int newVersion)
                        defaultPrecision[EbtSampler2D] = EpqLow;
                        defaultPrecision[EbtSamplerCube] = EpqLow;
         }
-       }
+       } else {
+        for (int type = 0; type < EbtNumTypes; ++type)
+            defaultPrecision[type] = EpqNone;
+    }
 }
 
 // Important assumption:  SetVersion() is called before SetProfile(), and is always called