Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(1176)

Unified Diff: src/compiler/Compiler.cpp

Issue 10247043: Use new symbol table initization for vertex shader. (Closed) Base URL: https://angleproject.googlecode.com/svn/trunk
Patch Set: address comments Created 10 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | src/compiler/Initialize.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
« no previous file with comments | « no previous file | src/compiler/Initialize.cpp » ('j') | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b