aboutsummaryrefslogtreecommitdiff
path: root/glslang/MachineIndependent/Initialize.cpp
diff options
context:
space:
mode:
authorJohn Kessenich <cepheus@frii.com>2013-06-13 23:56:04 +0000
committerJohn Kessenich <cepheus@frii.com>2013-06-13 23:56:04 +0000
commitf78fff94e905bd571491881a5909dc08a3e6e5a2 (patch)
treec703ebe1753baf3424ca3c44252d87272f53451e /glslang/MachineIndependent/Initialize.cpp
parentfb7044a9a8918dafd8dfff1d4e57fdba1cc32f1c (diff)
downloadglslang-f78fff94e905bd571491881a5909dc08a3e6e5a2.tar.gz
Implement __VERSION__ macro, make ftransform() non-ES only, add more tests.
git-svn-id: https://cvs.khronos.org/svn/repos/ogl/trunk/ecosystem/public/sdk/tools/glslang@22000 e7fa87d3-cd2b-0410-9028-fcbf551c1848
Diffstat (limited to 'glslang/MachineIndependent/Initialize.cpp')
-rw-r--r--glslang/MachineIndependent/Initialize.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/glslang/MachineIndependent/Initialize.cpp b/glslang/MachineIndependent/Initialize.cpp
index 77f3ff17..8b7e3fc0 100644
--- a/glslang/MachineIndependent/Initialize.cpp
+++ b/glslang/MachineIndependent/Initialize.cpp
@@ -630,7 +630,8 @@ void TBuiltIns::initialize(int version, EProfile profile)
//
// Geometric Functions.
//
- s.append(TString("vec4 ftransform();"));
+ if (profile != EEsProfile)
+ s.append(TString("vec4 ftransform();"));
//
// Original-style texture Functions with lod.