Index: src/compiler/Compiler.cpp |
diff --git a/src/compiler/Compiler.cpp b/src/compiler/Compiler.cpp |
index 9d3e4072f64c8caf34a4214490059855004d2fdd..2ac367cde6aa4618875c6c6c21927ead8399ee86 100644 |
--- a/src/compiler/Compiler.cpp |
+++ b/src/compiler/Compiler.cpp |
@@ -69,7 +69,20 @@ bool InitializeSymbolTable( |
} |
} |
- InsertBuiltInFunctionsCommon(resources, &symbolTable); |
+ |
+ switch (type) { |
+ case SH_FRAGMENT_SHADER: |
+ InsertBuiltInFunctionsCommon(resources, &symbolTable); |
+ break; |
+ |
+ case SH_VERTEX_SHADER: |
+ InsertBuiltInFunctionsCommon(resources, &symbolTable); |
+ InsertBuiltInFunctionsVertex(resources, &symbolTable); |
+ break; |
+ |
+ default: assert(false && "Language not supported"); |
+ } |
+ |
IdentifyBuiltIns(type, spec, resources, symbolTable); |
return true; |